mirror of
https://github.com/circify/circ.git
synced 2026-05-14 03:00:33 -04:00
Add zxc & zxe example
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
(let (
|
||||
; each line defines a prover input
|
||||
(x #x04)
|
||||
)
|
||||
false
|
||||
false ; ignored
|
||||
)
|
||||
|
||||
18
scripts/zxe_example.sh
Normal file
18
scripts/zxe_example.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
set -xe
|
||||
|
||||
cargo build --release --features 'zok r1cs smt' --example zxe --example zxc
|
||||
|
||||
ZXC=target/release/examples/zxc
|
||||
ZXE=target/release/examples/zxe
|
||||
PROPERTY=examples/ZoKrates/pf/3_plus.zok
|
||||
PROVER_INPUT=examples/ZoKrates/pf/3_plus.zok.pin
|
||||
PROVER_DATA=out.pdat
|
||||
VERIFIER_DATA=out.vdat
|
||||
|
||||
# Remove any old data
|
||||
rm -f $PROVER_DATA $VERIFIER_DATA
|
||||
|
||||
$ZXC $PROPERTY
|
||||
$ZXE $PROVER_DATA --inputs $PROVER_INPUT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user