Scroll common rust crates.
Import as an dependency to use.
Setup
cargo build --release --bin setup
./target/release/setup --params <params-file-path> --seed <seed-file-path>
If you run into linking issues during setup you may need to run
cp `find ./target/release/ | grep libzktrie.so` /usr/local/lib/
to move the zktrielib into a path where your linker can locate it
Prove
cargo build --release --bin prove
./target/release/prove --help
By default, prover tests are disabled due to heavy computations, if you want to run the prover tests, please run:
RUST_LOG=info cargo test --features prove_verify --release
By default, it run the test for a trace corresponding to a block containing multiple erc20 txs. You can config mode
ENV to test other trace:
MODE=single
for a block containing 1 erc20 tx.MODE=native
for a block containing 1 native ETH transfer tx.MODE=greeter
for a block containing 1Greeter
contractset_value
call tx.MODE=empty
for an empty block.
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.