Saturday, November 4, 2023

175: Ownable and Access Control

 Open Zeppelin provides a suite of widely used tools for writing more secure smart contracts. For example, we can inherit from the Ownable contract to give our contract the ability to decide an owner upon construction. We can then restrict certain functions within the contract to only being callable by the owner. When more complex access control is required, Open Zeppelin libraries can be used to create a variety of roles. These roles can provide granular access to functions and allow the smart contract developer to control access with precision. 

No comments:

Post a Comment

190: Sablier

 The CodeHawks platform has an upcoming audit on the Sablier protocol, so I decided to read through the docs and familiarize myself with the...