[MPT - stack trie] fix witness generation
KimiWu123 opened this issue · comments
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 #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...