mirror of
https://github.com/zkp2p/zkp2p-poc.git
synced 2026-01-09 13:48:06 -05:00
15 lines
414 B
Bash
Executable File
15 lines
414 B
Bash
Executable File
#!/bin/bash
|
|
|
|
source circuit.env
|
|
R1CS_FILE="$BUILD_DIR/$CIRCUIT_NAME.r1cs"
|
|
PHASE1=../circuit/powersOfTau28_hez_final_22.ptau
|
|
|
|
echo "****EXPORTING VKEY****"
|
|
start=$(date +%s)
|
|
set -x
|
|
NODE_OPTIONS='--max-old-space-size=644000' ../node_modules/.bin/snarkjs zkey export verificationkey "$BUILD_DIR"/"$CIRCUIT_NAME".zkey "$BUILD_DIR"/vkey.json
|
|
end=$(date +%s)
|
|
{ set +x; } 2>/dev/null
|
|
echo "DONE ($((end - start))s)"
|
|
echo
|