Skip to content

Commit

Permalink
chore: update verification keys and deploy contracts (#826)
Browse files Browse the repository at this point in the history
* chore: update verification keys

* fix(contracts): update verification key parameters

* chore: deploy contracts

* chore(contracts): remove script to copy abi after compiling
  • Loading branch information
cedoor authored Jul 18, 2024
1 parent 5774746 commit 0d55ccb
Show file tree
Hide file tree
Showing 6 changed files with 1,834 additions and 947 deletions.
908 changes: 454 additions & 454 deletions packages/contracts/contracts/base/SemaphoreVerifier.sol

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"private": true,
"scripts": {
"start": "hardhat node",
"copy:abi": "ncp artifacts/contracts/Semaphore.sol/Semaphore.json ../utils/src/semaphore-abi.json",
"compile": "hardhat compile && yarn copy:abi",
"copy:abi": "ncp artifacts/contracts/Semaphore.sol/Semaphore.json ../utils/src/semaphore-abi.json",
"compile": "hardhat compile",
"deploy": "hardhat deploy",
"verify": "hardhat run scripts/verify-contracts.ts",
"mock": "hardhat run scripts/create-mock-groups.ts",
Expand Down
5 changes: 4 additions & 1 deletion packages/proof/src/generate-proof.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ export default async function generateProof(
}

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

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

0 comments on commit 0d55ccb

Please sign in to comment.