Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support end-to-end flow with Bonsai in forge test and local deployment #29

Closed
wants to merge 35 commits into from

Conversation

nategraf
Copy link
Contributor

@nategraf nategraf commented Jul 18, 2023

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.
  • Format and add new content to README.md
  • Use workspace-level dependency declarations.

Resolves #26
Resolves #27
Resolves #28

@nategraf nategraf marked this pull request as draft July 19, 2023 00:06
@nategraf
Copy link
Contributor Author

nategraf commented Jul 19, 2023

Remaining work is to update and test the local deployment script. If it is ready, I will also integrate the updated relay with the ability to plumb through SNARK proofs from the Bonsai proving service.

@nategraf
Copy link
Contributor Author

Depends on additions to the Bonsai libraries in risc0/risc0#712

@nategraf
Copy link
Contributor Author

@capossele, I've now added a more complete deploy script and run the local deployment. The local environment example doesn't work yet because the Relay does not support the BonsaiRelay and BonsaiTestRelay contracts.

@nategraf nategraf changed the title Support end-to-end flow with Bonsai in forge test Support end-to-end flow with Bonsai in forge test and local deployment Jul 19, 2023
@capossele
Copy link
Contributor

Replaced by #45

@capossele capossele closed this Aug 16, 2023
@capossele capossele deleted the victor/update-bonsai-libs branch May 16, 2024 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants