mirror of
https://github.com/zkp2p/zkp2p-poc.git
synced 2026-01-09 13:48:06 -05:00
12 lines
350 B
Bash
Executable File
12 lines
350 B
Bash
Executable File
#!/bin/bash
|
|
source circuit.env
|
|
|
|
echo "****GENERATING WITNESS FOR SAMPLE INPUT****"
|
|
start=$(date +%s)
|
|
set -x
|
|
node "$BUILD_DIR"/"$CIRCUIT_NAME"_js/generate_witness.js "$BUILD_DIR"/"$CIRCUIT_NAME"_js/"$CIRCUIT_NAME".wasm ../circuit/inputs/input.json "$BUILD_DIR"/witness.wtns
|
|
{ set +x; } 2>/dev/null
|
|
end=$(date +%s)
|
|
echo "DONE ($((end - start))s)"
|
|
echo
|