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

Establish specs for access control for gateway #47

Open
Tracked by #3233
lumtis opened this issue Oct 8, 2024 · 0 comments
Open
Tracked by #3233

Establish specs for access control for gateway #47

lumtis opened this issue Oct 8, 2024 · 0 comments

Comments

@lumtis
Copy link
Member

lumtis commented Oct 8, 2024

We have several authorized actions that can be performed in the gateway architecture similar to EVM chains

  • update TSS
  • whitelisting
  • withdrawing tokens

Instead of using singular address for each action, we should look if we can setup a access control framework similar to what we have with EVM: https://www.notion.so/zetachain/Smart-Contract-V2-Access-Control-46caa81233c94af49ab1f9151c0c672d

Example: instead of having account that can withdraw, we have a withdrawer role that some account can be attached to.

To check: https://docs.rs/anchor-lang/latest/anchor_lang/attr.access_control.html

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

No branches or pull requests

1 participant