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

Feature/set timing permission #685

Merged
merged 17 commits into from
Jan 28, 2023
Merged

Conversation

mrmr1993
Copy link
Member

No description provided.

@mitschabaude mitschabaude changed the base branch from main to berkeley January 11, 2023 08:24
@mitschabaude
Copy link
Member

triggered manual workflow run: https://github.com/o1-labs/snarkyjs/actions/runs/3891134963

@mitschabaude
Copy link
Member

actually this is probably missing ./scripts/update-snarkyjs-bindings.sh

Copy link
Member

@mitschabaude mitschabaude left a comment

Choose a reason for hiding this comment

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

looks good to me with one comment, pre-approving. but should be made to pass the tests still (next push should trigger CI automatically)

@@ -245,6 +246,7 @@ let Permissions = {
setTokenSymbol: Permission.signature(),
incrementNonce: Permission.signature(),
setVotingFor: Permission.signature(),
setTiming: Permission.signature(),
Copy link
Member

Choose a reason for hiding this comment

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

These are the permissions that get applied by default when you deploy a zkApp. I think to prevent the "malicious zkApp developer" case that you outlined, the default for setTiming should be "proof". Note: we changed the default for send to "proof" as well on main, even though here it's still "signature"

@mitschabaude mitschabaude merged commit 98970da into berkeley Jan 28, 2023
@mitschabaude mitschabaude deleted the feature/setTiming-permission branch January 28, 2023 10:54
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