Skip to content

Commit 0d55ccb

Browse files
authored
chore: update verification keys and deploy contracts (#826)
* chore: update verification keys * fix(contracts): update verification key parameters * chore: deploy contracts * chore(contracts): remove script to copy abi after compiling
1 parent 5774746 commit 0d55ccb

File tree

6 files changed

+1834
-947
lines changed

6 files changed

+1834
-947
lines changed

packages/contracts/contracts/base/SemaphoreVerifier.sol

Lines changed: 454 additions & 454 deletions
Large diffs are not rendered by default.

packages/contracts/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"private": true,
44
"scripts": {
55
"start": "hardhat node",
6-
"copy:abi": "ncp artifacts/contracts/Semaphore.sol/Semaphore.json ../utils/src/semaphore-abi.json",
7-
"compile": "hardhat compile && yarn copy:abi",
6+
"copy:abi": "ncp artifacts/contracts/Semaphore.sol/Semaphore.json ../utils/src/semaphore-abi.json",
7+
"compile": "hardhat compile",
88
"deploy": "hardhat deploy",
99
"verify": "hardhat run scripts/verify-contracts.ts",
1010
"mock": "hardhat run scripts/create-mock-groups.ts",

packages/proof/src/generate-proof.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ export default async function generateProof(
8383
}
8484

8585
// If the Snark artifacts are not defined they will be automatically downloaded.
86-
snarkArtifacts ??= await maybeGetSnarkArtifacts(Project.SEMAPHORE, { parameters: [merkleTreeDepth] })
86+
snarkArtifacts ??= await maybeGetSnarkArtifacts(Project.SEMAPHORE, {
87+
parameters: [merkleTreeDepth],
88+
version: "4.0.0-beta.18"
89+
})
8790
const { wasm, zkey } = snarkArtifacts
8891

8992
// The index must be converted to a list of indices, 1 for each tree level.

0 commit comments

Comments
 (0)