614b4b899d
* feat(parameters): Replace trait with a params struct We define a CeremonyParams struct which contains a curve and setup-specific parameters The curve is a CurveParams struct which contains the sizes of the compressed and uncompressed group elements This will allow us to easily extend the implementations over multiple curves and constraint numbers (currently these are hard coded and cannot be easily chagned) * feat(keypair): Use the CeremonyParams struct instead of being generic over the PowersOfTauParams trait * feat(accumulator): Use the CeremonyParams struct instead of being generic over the PowersOfTauParams trait * feat(batched-accumulator): Use the CeremonyParams struct instead of being generic over the PowersOfTauParams trait driveby-change: also replace println's with error/info logs * feat(batched-accumulator): Use the CeremonyParams struct instead of being generic over the PowersOfTauParams trait driveby-change: also replace println's with error/info logs * refactor(bn256): delete bn256 module and move tests to better locations * fix(bin): make all binaries build with the CeremonyParams object * test(e2e): run the test with circuit power and batch size provided at runtime * chore: remove unused accumulator.rs and new.rs
29 lines
1.0 KiB
Bash
Executable File
29 lines
1.0 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
rm challenge*
|
|
rm response*
|
|
rm transcript
|
|
rm phase1radix*
|
|
rm tmp_*
|
|
|
|
set -e
|
|
|
|
SIZE=10
|
|
BATCH=256
|
|
|
|
cargo run --release --bin new_constrained challenge1 $SIZE $BATCH
|
|
yes | cargo run --release --bin compute_constrained challenge1 response1 $SIZE $BATCH
|
|
cargo run --release --bin verify_transform_constrained challenge1 response1 challenge2 $SIZE $BATCH
|
|
|
|
yes | cargo run --release --bin compute_constrained challenge2 response2 $SIZE $BATCH
|
|
cargo run --release --bin verify_transform_constrained challenge2 response2 challenge3 $SIZE $BATCH
|
|
|
|
yes | cargo run --release --bin compute_constrained challenge3 response3 $SIZE $BATCH
|
|
cargo run --release --bin verify_transform_constrained challenge3 response3 challenge4 $SIZE $BATCH
|
|
|
|
cargo run --release --bin beacon_constrained challenge4 response4 $SIZE $BATCH
|
|
cargo run --release --bin verify_transform_constrained challenge4 response4 challenge5 $SIZE $BATCH
|
|
|
|
cat response1 response2 response3 response4 > transcript
|
|
cargo run --release --bin verify transcript $SIZE $BATCH
|