Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Write solidity code to generate the Root Circuit public inputs as specified by the PublicInputs circuit #12

Closed
ed255 opened this issue Aug 6, 2022 · 1 comment
Assignees

Comments

@ed255
Copy link
Member

ed255 commented Aug 6, 2022

Depends on #13

Also verify the proof by calling halo2 verifier contract from L1 zkRollup contract. Depends on privacy-scaling-explorations/zkevm-circuits#665

The PublicInputs public inputs construction is defined here https://github.com/privacy-scaling-explorations/zkevm-specs/blob/08c6c30a7b53f83558a7ea7e50dc0e4d74fab0c8/src/zkevm_specs/public_inputs.py#L290 Where public_data comes from the L1 Tx calldata (an encoding needs to be defined), rand_rpi comes from hashing the raw_public_inputs array like shown in the diagram https://github.com/privacy-scaling-explorations/zkevm-specs/blob/master/specs/public_inputs.md and MAX_TXS and MAX_CALLDATA_BYTES are constants defined during the circuit setup.

@ed255 ed255 added this to the successful-erc20 milestone Aug 6, 2022
@pinkiebell pinkiebell moved this from 🆕 New to 🏗 In progress in zkEVM Community Edition Aug 16, 2022
@pinkiebell
Copy link
Contributor

I'm splitting the halo verifier part into a standalone issue

@ed255 ed255 moved this from 🏗 In progress to ✅ Done in zkEVM Community Edition Aug 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Status: Done
Development

No branches or pull requests

2 participants