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

Introduce IPGraph Access Control Support #208

Merged
merged 6 commits into from
Aug 26, 2024

Conversation

kingster-will
Copy link

Description

This PR introduces IPGraph Access Control (IPGraphACL) support, ensuring that only whitelisted contracts can write to the IPGraph precompiled contract. The IPGraphACL includes a special storage slot that allows whitelisted addresses to set a flag (allow or disallow). The precompiled IPGraph will check this flag for all operations that change the state. The idea is that qualified contracts, like LicenseRegistry, will enable the flag to access the precompiled IPGraph and then disable the flag after writing to the IPGraph.

Key Changes

  • IPGraphACL Contract: Added a contract to manage access control for the IPGraph.
  • Whitelist Management: Functions to add and remove addresses from the whitelist.
  • Flag Management: Functions to set the allow/disallow flag for whitelisted addresses.
  • Integration with IPGraph: Ensured that the IPGraph precompiled contract checks the flag before performing state-changing operations.

@kingster-will kingster-will merged commit 47d8fd1 into storyprotocol:main Aug 26, 2024
2 checks passed
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.

2 participants