mirror of
https://github.com/logos-storage/circom-goldilocks.git
synced 2026-03-30 15:03:08 +00:00
19 lines
322 B
Bash
Executable File
19 lines
322 B
Bash
Executable File
#!/bin/bash
|
|
|
|
ORIG=`pwd`
|
|
MAIN="testmain"
|
|
INPUT="input.json"
|
|
|
|
cd build
|
|
|
|
circom ../${MAIN}.circom --r1cs --wasm
|
|
|
|
#echo '{ "dummy": 666 }' >${INPUT}
|
|
#echo '{ "A": [66,111] }' >${INPUT}
|
|
echo '{ "A": [57,137] , "B": [66,111] }' >${INPUT}
|
|
|
|
cd ${MAIN}_js
|
|
|
|
node generate_witness.js ${MAIN}.wasm ../${INPUT} witness.wtns
|
|
|
|
cd ${ORIG} |