Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion circom/scripts/build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,15 @@ npx snarkjs ${ZPROTOCOL} setup "$BUILD_DIR"/"$CIRCUIT_NAME".r1cs "$PHASE1" "$BUI
end=`date +%s`
echo "DONE ($((end-start))s)"

echo "****CONTRIBUTING ZKEY 1****"
start=`date +%s`
npx snarkjs zkey contribute "$BUILD_DIR"/"$CIRCUIT_NAME"_0.zkey "$BUILD_DIR"/"$CIRCUIT_NAME"_1.zkey --name="1st Contributor Name" -v || exit
end=`date +%s`
echo "DONE ($((end-start))s)"

echo "****GENERATING FINAL ZKEY****"
start=`date +%s`
NODE_OPTIONS="--max-old-space-size=56000" npx snarkjs zkey beacon "$BUILD_DIR"/"$CIRCUIT_NAME"_0.zkey "$BUILD_DIR"/"$CIRCUIT_NAME".zkey 12FE2EC467BD428DD0E966A6287DE2AF8DE09C2C5C0AD902B2C666B0895ABB75 10 -n="Final Beacon phase2" || exit
NODE_OPTIONS="--max-old-space-size=56000" npx snarkjs zkey beacon "$BUILD_DIR"/"$CIRCUIT_NAME"_1.zkey "$BUILD_DIR"/"$CIRCUIT_NAME".zkey 12FE2EC467BD428DD0E966A6287DE2AF8DE09C2C5C0AD902B2C666B0895ABB75 10 -n="Final Beacon phase2" || exit
end=`date +%s`
echo "DONE ($((end-start))s)"

Expand Down
8 changes: 4 additions & 4 deletions contracts/verifier2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ contract Groth16Verifier {
uint256 constant gammax2 = 10857046999023057135944570762232829481370756359578518086990519993285655852781;
uint256 constant gammay1 = 4082367875863433681332203403145435568316851327593401208105741076214120093531;
uint256 constant gammay2 = 8495653923123431417604973247489272438418190587263600148770280649306958101930;
uint256 constant deltax1 = 12835677679493139045269931295051448329793403398705026697877485711464362140790;
uint256 constant deltax2 = 10890565504224301114874433160320698556606628868096993643809081156365267213249;
uint256 constant deltay1 = 4820425325906337717692330783154620996810762479415825588979740850757518563223;
uint256 constant deltay2 = 20093054666161765761327580477678108845241889769892444974271179780900242692838;
uint256 constant deltax1 = 16052742923128957865054977935054910914325268589463157570317915586481905703676;
uint256 constant deltax2 = 5275234775418293678074135427476731574564900085465364213028246417979281030393;
uint256 constant deltay1 = 15074546931839152480666864429137492139314964383368818566007550713846561229462;
uint256 constant deltay2 = 809101966924870641968799904345624923651810413083961659152470001551823113334;


uint256 constant IC0x = 21859776616790133348839467181671732914251000215306575824317360595804907051375;
Expand Down