This package provides a Rust executable to generate example transactions with aggregated and non-aggregated proofs that can be executed with the Anoma EVM Protocol Adapter or be used for testing purposes, e.g., in ./contracts/test/examples/transactions/.
-
Get an up-to-date version of Rust with
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-
Install RISC Zero
rzupwithcurl -L https://risczero.com/install | sh -
Install the RISC Zero version 3.0.3 with
rzup install cargo-risczero 3.0.3
From the project root run
cargo build --release --package example-tx-generationThe executable expects three input arguments:
- Whether to generate aggregate proofs or not.
- The number of actions to generate.
- The number of compliance units per action, each of which contains two resources.
Compliance units contain one ephemeral consumed resource and one created resource, both having a quantity of one and the trivial resource logic always returning true.
To generate an example transaction .bin file with, e.g., aggregated proofs and one action containing one compliance unit, run
./target/release/example-tx-generation true 1 1from the project root.