-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(l2): verify proof on chain (#1115)
**Motivation** After sending the commitment, we should generate the zkProof and then verify it on chain. **Description** Using the Risc0Groth16Verifier in Sepolia. Steps: Use the `.env.example` but change the following variables: ``` RISC0_DEV_MODE=0 ETH_RPC_URL=<Any sepolia endpoint> DEPLOYER_CONTRACT_VERIFIER=0xd9b0d07CeCd808a8172F21fA7C97992168f045CA (`Risc0Groth16Verifier`) ``` 1. cd `~/lambda_ethereum_rust/crates/l2` 2. run `make deploy-l1` -- if it fails change the `SALT` in `crates/l2/contracts/deployer.rs` 1. Copy the `OnChainProposer` address given in the .env file (`PROPOSER_ON_CHAIN_PROPOSER_ADDRESS`) 2. Copy the `Bridge address` given in the .env file (`L1_WATCHER_BRIDGE_ADDRESS`) 3. rm the libmdbx files `rm -rf ~/.local/share/ethereum_rust` 4. run the proposer/sequencer: `make init-l2` 5. In a new tab/window run the prover: `make init-l2-prover-gpu` --------- Co-authored-by: Manuel Iñaki Bilbao <[email protected]> Co-authored-by: Ivan Litteri <[email protected]>
- Loading branch information
1 parent
ee714e4
commit b804aa2
Showing
22 changed files
with
1,220 additions
and
586 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.