21 lines
No EOL
374 B
Bash
Executable file
21 lines
No EOL
374 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
bin=$1; stdlib=$2
|
|
|
|
function zokrates() {
|
|
ZOKRATES_STDLIB=$stdlib $bin $*
|
|
}
|
|
|
|
zokrates compile -i hashexample.zok
|
|
zokrates compute-witness -a 0 0 0 5
|
|
|
|
grep '~out' witness
|
|
|
|
cp -f hashexample_updated.zok hashexample.zok
|
|
|
|
zokrates compile -i hashexample.zok
|
|
zokrates setup
|
|
zokrates export-verifier
|
|
zokrates compute-witness -a 0 0 0 5
|
|
zokrates generate-proof |