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

add documentation for verification key permissions #898

Open
barriebyron opened this issue Apr 3, 2024 · 0 comments
Open

add documentation for verification key permissions #898

barriebyron opened this issue Apr 3, 2024 · 0 comments
Assignees

Comments

@barriebyron
Copy link
Contributor

Add verification key info from Verification Key Permissions RFC to
https://docs.minaprotocol.com/zkapps/o1js/permissions#default-permissions

the default permission is derived from the protocol version:

let protocol_versions =
  let open Protocol_version in
  `Assoc [ ("txnVersion", `Int (transaction current)) ]

verification key permissions:

  • (not really user facing) zkapp transactions embed the current zkapp version when specifying verification key permission updates
  • (user facing) Verification key permissions configured by users are valid for the current zkapp version. If zkapps are upgraded, verification keys will need to be regenerated, so the old verification key can no longer be used. Thus, when the zkapp version changes, the verification key permission will fallback to Signature so that existing zkapps can have their verification keys updated using the private key for that account.
@barriebyron barriebyron self-assigned this Apr 3, 2024
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