Closed vplasencia closed 6 months ago
This PR adds the new verification keys after the staging ceremony.
This PR should be merged after this: https://github.com/privacy-scaling-explorations/snark-artifacts/pull/80
These are the steps to follow after the real trusted setup ceremony is finished:
Clone this repo: https://github.com/vplasencia/semaphorev4-generate-zk-artifacts and run yarn to install dependencies.
yarn
Add the zkey files to a folder called p0tion-artifacts.
p0tion-artifacts
Run yarn export-keys.
yarn export-keys
This will generate two files:
A file called verification-keys.json with the verification keys for the Semaphore proof package.
verification-keys.json
A file called contract-verification-keys.json with the VK_POINTS values for the Semaphore verifier contract.
contract-verification-keys.json
VK_POINTS
semaphorev4-generate-zk-artifacts
https://github.com/semaphore-protocol/semaphore/blob/main/packages/proof/src/verification-keys.json
https://github.com/semaphore-protocol/semaphore/blob/5d513f92fb2369ab5abc1cd0b0612968465262e0/packages/contracts/contracts/base/SemaphoreVerifier.sol#L29
yarn format
yarn lint
Description
This PR adds the new verification keys after the staging ceremony.
This PR should be merged after this: https://github.com/privacy-scaling-explorations/snark-artifacts/pull/80
Aditional info
These are the steps to follow after the real trusted setup ceremony is finished:
Clone this repo: https://github.com/vplasencia/semaphorev4-generate-zk-artifacts and run
yarn
to install dependencies.Add the zkey files to a folder called
p0tion-artifacts
.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 theVK_POINTS
values for the Semaphore verifier contract.verification-keys.json
file in thesemaphorev4-generate-zk-artifacts
project.https://github.com/semaphore-protocol/semaphore/blob/main/packages/proof/src/verification-keys.json
contract-verification-keys.json
file in thesemaphorev4-generate-zk-artifacts
project :https://github.com/semaphore-protocol/semaphore/blob/5d513f92fb2369ab5abc1cd0b0612968465262e0/packages/contracts/contracts/base/SemaphoreVerifier.sol#L29
Checklist
yarn format
andyarn lint
without getting any errors