@@ -12,12 +12,12 @@ CIRCUIT=target/$CIRCUIT_NAME.json
1212
1313# merge Prover1.toml and Prover2.toml into Prover.toml
1414# Convert TOML to JSON
15- dasel -f " $CIRCUIT_NAME /Prover1.toml" -r toml -w json > prover1.json
16- dasel -f " $CIRCUIT_NAME /Prover2.toml" -r toml -w json > prover2.json
15+ dasel -f " $CIRCUIT_NAME /Prover1.toml" -r toml -w json > prover1.json
16+ dasel -f " $CIRCUIT_NAME /Prover2.toml" -r toml -w json > prover2.json
1717# Merge JSON with jq
18- jq -s ' .[0] * .[1]' prover1.json prover2.json > merged.json
18+ jq -s ' .[0] * .[1]' prover1.json prover2.json > merged.json
1919# Convert back to TOML
20- dasel -f merged.json -r json -w toml > " $CIRCUIT_NAME /Prover.toml"
20+ dasel -f merged.json -r json -w toml > " $CIRCUIT_NAME /Prover.toml"
2121rm prover1.json prover2.json merged.json
2222
2323# split input into shares
@@ -49,9 +49,9 @@ wait $(jobs -p)
4949timeEnd " mpc-build-proving-key"
5050
5151timeStart " mpc-generate-proof"
52- co-noir generate-proof --proving-key target/proving_key.0 --protocol REP3 --hasher KECCAK --crs ~ /.bb-crs/bn254_g1.dat --config configs/party0.toml --out target/proof.0.proof --public-input target/public_input.json &
53- co-noir generate-proof --proving-key target/proving_key.1 --protocol REP3 --hasher KECCAK --crs ~ /.bb-crs/bn254_g1.dat --config configs/party1.toml --out target/proof.1.proof &
54- co-noir generate-proof --proving-key target/proving_key.2 --protocol REP3 --hasher KECCAK --crs ~ /.bb-crs/bn254_g1.dat --config configs/party2.toml --out target/proof.2.proof
52+ co-noir generate-proof --proving-key target/proving_key.0 --protocol REP3 --hasher keccak --crs ~ /.bb-crs/bn254_g1.dat --config configs/party0.toml --out target/proof.0.proof --public-input target/public_input.json &
53+ co-noir generate-proof --proving-key target/proving_key.1 --protocol REP3 --hasher keccak --crs ~ /.bb-crs/bn254_g1.dat --config configs/party1.toml --out target/proof.1.proof &
54+ co-noir generate-proof --proving-key target/proving_key.2 --protocol REP3 --hasher keccak --crs ~ /.bb-crs/bn254_g1.dat --config configs/party2.toml --out target/proof.2.proof
5555wait $( jobs -p)
5656timeEnd " mpc-generate-proof"
5757
@@ -62,13 +62,12 @@ timeStart "bb-generate-proof"
6262bb prove_ultra_keccak_honk -b $CIRCUIT -w target/$CIRCUIT_NAME .gz -o target/proof_bb.proof
6363timeEnd " bb-generate-proof"
6464
65-
6665# Create verification key
67- co-noir create-vk --circuit $CIRCUIT --crs bn254_g1.dat --hasher KECCAK --vk target/verification_key
66+ co-noir create-vk --circuit $CIRCUIT --crs bn254_g1.dat --hasher keccak --vk target/verification_key
6867echo " Verification key created"
6968
7069# verify proof
71- co-noir verify --proof target/proof.0.proof --vk target/verification_key --hasher KECCAK --crs bn254_g2.dat
70+ co-noir verify --proof target/proof.0.proof --vk target/verification_key --hasher keccak --crs bn254_g2.dat
7271echo " Proof verified"
7372
7473bb write_vk_ultra_keccak_honk -b $CIRCUIT -o target/verification_key_bb
0 commit comments