zkevm-chain icon indicating copy to clipboard operation
zkevm-chain copied to clipboard

contracts/PatriciaValidator: split _validatePatriciaProof into dedicated functions

Open pinkiebell opened this issue 2 years ago • 0 comments

The goal of this change is that account proof and storage proofs can be separately verified.

Instead of verifying account and storage of the L1 bridge on L2 for each message, verify the account proof once and save the last known storage root of the L1 bridge account (on L2 bridge).

For each message delivery(on L2), only submit a storage proof and validate against that.

pinkiebell avatar Aug 25 '22 12:08 pinkiebell