This PR ports the modifications and improvements I worked on for the Governance showcase back to the
template. Included changes are:
In forge test, optional request a SNARK from the Bonsai proving service and provide it to authenticate the callback, using the real SNARK verifier implementation (BonsaiRelay). This flow is enabled when RISC0_DEV_MODE=false is set and uses the full implementations of all components except the Bonsai Relay.
By running cargo run --bin bonsai-ethereum-relay-cli -- run, developers can launch the Bonsai relay. With this, they can either target a a local Ethereum node with anvil or a public Ethereum network like Sepolia. This supports both local and testnet deployment of the developers's application.
Additionally:
Declare github.com/risc0/risc0 as a dependency and use the contained Bonsai libraries.
This PR ports the modifications and improvements I worked on for the Governance showcase back to the template. Included changes are:
forge test
, optional request a SNARK from the Bonsai proving service and provide it to authenticate the callback, using the real SNARK verifier implementation (BonsaiRelay
). This flow is enabled whenRISC0_DEV_MODE=false
is set and uses the full implementations of all components except the Bonsai Relay.cargo run --bin bonsai-ethereum-relay-cli -- run
, developers can launch the Bonsai relay. With this, they can either target a a local Ethereum node withanvil
or a public Ethereum network like Sepolia. This supports both local and testnet deployment of the developers's application.Additionally:
github.com/risc0/risc0
as a dependency and use the contained Bonsai libraries.Resolves https://github.com/risc0/bonsai-foundry-template/issues/26 Resolves https://github.com/risc0/bonsai-foundry-template/issues/27 Resolves https://github.com/risc0/bonsai-foundry-template/issues/28 Resolves https://github.com/risc0/bonsai-foundry-template/issues/38