Typo in the MPT blog post #11635
Labels
bug 🐛
Something isn't working
needs triage 📥
This issue needs triaged before being worked on
Status: Stale
This issue is stale because it has been open 30 days with no activity.
Describe the bug
The blog post on MPT seems to have a few typos.
typo 1
Appendix D of the yellow paper states that we need to check
len(rlp.encoding(x)) >= 32
instead oflen(x) >= 32
. I find this problematic sincelen(x)
is not well-defined and confusing.Here's the quote from the yellow paper:
typo 2
Some branch nodes in the example trie containing
('do', 'verb'), ('dog', 'puppy'), ('doge', 'coin'), ('horse', 'stallion')
seem incorrect.HashD
and the referenced node inHashE
are both branch nodes with one non-zero entry. However, this is explicitly prohibited in the yellow paper.To reproduce
Go to https://ethereum.org/en/developers/docs/data-structures-and-encoding/patricia-merkle-trie/
Expected behavior
For the first one, one needs to replace
len(x)
withlen(rlp.encoding(x))
. For the second one, one would have to recalculate what the trie would look like without a branch node with one branch.Screenshots
No response
Desktop (please complete the following information)
No response
Smartphone (please complete the following information)
No response
Additional context
No response
Would you like to work on this issue?
The text was updated successfully, but these errors were encountered: