1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00
ZoKrates/zokrates_cli/examples/book/sha256_tutorial/test.sh
2023-04-04 18:46:08 +02:00

19 lines
No EOL
365 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 --verbose
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