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

chore: update verification keys #795

Merged
merged 1 commit into from
May 31, 2024
Merged

chore: update verification keys #795

merged 1 commit into from
May 31, 2024

Conversation

vplasencia
Copy link
Member

@vplasencia vplasencia commented May 30, 2024

Description

This PR adds the new verification keys after the staging ceremony.

This PR should be merged after this: privacy-scaling-explorations/snark-artifacts#80

Aditional info

These are the steps to follow after the real trusted setup ceremony is finished:

  1. Clone this repo: https://github.com/vplasencia/semaphorev4-generate-zk-artifacts and run yarn to install dependencies.

  2. Add the zkey files to a folder called p0tion-artifacts.

  3. Run yarn export-keys.

This will generate two files:

  • A file called verification-keys.json with the verification keys for the Semaphore proof package.

  • A file called contract-verification-keys.json with the VK_POINTS values for the Semaphore verifier contract.

  1. Update the Semaphore repo.
  • Update this file with the new values in the verification-keys.json file in the semaphorev4-generate-zk-artifacts project.

https://github.com/semaphore-protocol/semaphore/blob/main/packages/proof/src/verification-keys.json

  • Update contract variable with the new values in the contract-verification-keys.json file in the semaphorev4-generate-zk-artifacts project :

uint256[14][MAX_DEPTH] VK_POINTS = [

  1. Release a new Semaphore version.

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have run yarn format and yarn lint without getting any errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

These are the new keys after the staging ceremony.
@vplasencia vplasencia requested a review from a team as a code owner May 30, 2024 15:42
@vplasencia vplasencia marked this pull request as draft May 30, 2024 15:43
@vplasencia vplasencia marked this pull request as ready for review May 31, 2024 11:01
@vplasencia vplasencia merged commit 1dbc310 into main May 31, 2024
4 of 5 checks passed
@vplasencia vplasencia deleted the chore/update-keys branch May 31, 2024 11:02
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.

1 participant