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

Adding "titles" or "permissions" #159

Closed
elsehow opened this issue Feb 1, 2022 · 6 comments
Closed

Adding "titles" or "permissions" #159

elsehow opened this issue Feb 1, 2022 · 6 comments
Labels

Comments

@elsehow
Copy link
Collaborator

elsehow commented Feb 1, 2022

Some users want special roles or permissions.

DAOs could mint a sort of "permission token" that grants the bearer scoped permissions within some application logic. It could be worth thinking about how to support this with our existing contracts.

@elsehow
Copy link
Collaborator Author

elsehow commented Feb 1, 2022

Perhaps related to #131 - permission tokens could be NFTs.

@vernonjohnson
Copy link
Contributor

vernonjohnson commented Feb 2, 2022

Does it need to be tied to a token? This reminds me of OpenZeppelin roles https://docs.openzeppelin.com/contracts/4.x/api/access which isn't token based. There would just a table for permissions / roles, and you'd have modifiers/guards that would check that the caller has an associated permission. Would be simpler to implement and reason about.

@vernonjohnson
Copy link
Contributor

EOSIO custom permission is the best implementation I've seen of this https://developers.eos.io/welcome/v2.1/smart-contract-guides/linking-custom-permission IMO

@elsehow
Copy link
Collaborator Author

elsehow commented Feb 2, 2022

Definitely doesn't need to be tied to a token! I like this better.

@JakeHartnell
Copy link
Member

The Authz module could be used for this: https://docs.cosmos.network/v0.44/modules/authz/01_concepts.html#Authorization

x/authz module defines interfaces and messages grant authorizations to perform actions on behalf of one account to other accounts.

@JakeHartnell
Copy link
Member

This is being done with the Authorizations module as well as SBTs.

See:

Closing in favor of those issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants