risc0 / zeth

A "Type 0" zkEVM. Prove validity of Ethereum blocks using RISC Zero's zkVM
Apache License 2.0
381 stars 68 forks source link

feat: STARK to SNARK conversion with Bonsai #86

Closed hashcashier closed 9 months ago

hashcashier commented 9 months ago

This PR introduces the --snark flag to the prove command, which converts (and validates) the final STARK output of the command into a SNARK using Bonsai. when using --snark, the --verifier-contract parameter must also be set to the on-chain address of the contract to use for validation. Additionally, a --verifier-rpc-url parameter can also be set to use a different rpc node than the one specified in eth-rpc-url.

Note: This PR does not update the README to explain these parameters to keep them in an experimental state.