zkevm-circuits
zkevm-circuits copied to clipboard
[MPT - stack trie] fix witness generation
Describe the feature you would like
There was an implementation under mpt-witness-generator/trie/stacktrie.go already, but still has some bugs. This issue is mainly to fix it.
See Miha's doc for more details.
Additional context
No response
This is partially resolved by https://github.com/privacy-scaling-explorations/zkevm-circuits/pull/1779, but would be good to add some further tests which would test GetProof more extensively, especially for the hashed trie (like TestGetProof). Also, it would be nice to have some tests that check whether the number of proof elements (for elements with a bigger depth) is as expected and the leaf (the last proof element) is as expected...
Update:
#1784 was to add testing for GetProof
#1789 was to export json file for circuit