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

Example / insight into doing a MPT proof verification for existing state

Open drewstone opened this issue 2 years ago • 1 comments

Hi,

I'm looking to find (if any) circuits that would be useful in verifying a proof of data in the MPT. I don't want to verify updates to any MPT rather just read data and verify existence. This would ideally be paired with eth_getProof in spirit. Is there any insight or examples of verifying state in this repo?

drewstone avatar Nov 09 '22 19:11 drewstone

Hi @drewstone We have an MPT circuit in the works, but it isn't ready yet. You can track it's progress via https://github.com/privacy-scaling-explorations/zkevm-circuits/pull/398

Once the MPT circuit is ready it should serve your purpose of proving existence of account fields and storage keys. You can check the API that the MPT circuit exposes (via a lookup table) here to see the kind of proofs it supports: https://github.com/privacy-scaling-explorations/zkevm-specs/blob/master/specs/tables.md#mpt_table

Once the MPT circuit PR is merged we may have tests that serve as examples for verifying MPT proofs of existence.

ed255 avatar Nov 10 '22 10:11 ed255

Close for inactivity.

ChihChengLiang avatar May 19 '23 10:05 ChihChengLiang