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

renegade_contracts: verifier, darkpool: make verifier contract Ownable #80

Closed
wants to merge 3 commits into from

Conversation

akirillo
Copy link
Contributor

This PR adds access control to the verifier, guarding the mutating functions (queue_verification_job and step_verifier) with an assertion that they are being called by the contract owner, which must be the darkpool.

Additionally, this PR changes the deployment pattern of the verifier contracts to be handled by the darkpool contract itself in its initialization. This makes our deployment logic simpler, and ensures that the verifier owner is the darkpool.

Cairo-native access control tests have been added for the verifier, which pass, as do all tests that had to be adapted to fit the new deployment pattern.

Relevant changes to the starknet_scripts crate are incomplete, a proper refactor of this crate is left for a future PR pending the completion of the verifier into the darkpool.

@akirillo akirillo added the enhancement New feature or request label Aug 31, 2023
@akirillo akirillo self-assigned this Aug 31, 2023
@akirillo
Copy link
Contributor Author

moving to draft after our discussion around making library calls to a multi-verifier contract

@akirillo akirillo marked this pull request as draft August 31, 2023 17:34
@akirillo akirillo closed this Sep 2, 2023
@akirillo akirillo deleted the andrew/verifier-ownership branch November 2, 2023 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant