Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access Control #47

Merged
merged 11 commits into from
Mar 2, 2021
Merged

Access Control #47

merged 11 commits into from
Mar 2, 2021

Conversation

alcueca
Copy link
Contributor

@alcueca alcueca commented Feb 26, 2021

Thinking how to set up access control in a way that would allow us for controlled decentralization, I realized that the AccessControl contract I coded with OpenZeppelin can be tweaked into something great.

There is a root role, and there is an implicit role for each function in the contract. Root can grant and revoke access to a function. Anyone can renounce access if they wish to do so. Root can lock the role for a function, so that no one (even himself) can grant access to that function ever again.

We can even delegate admin roles, if we grow to such a size that it would make sense to do so.

Copy link
Contributor

@gakonst gakonst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work, I like this customization

@alcueca alcueca merged commit 714165b into master Mar 2, 2021
@alcueca alcueca deleted the feat/access-control branch April 22, 2021 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants