1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00
ZoKrates/zokrates_cli/examples/book/sha256_tutorial/test.sh

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