Skip to content

fix: Formatting of table in Patricia Merkle Trie doc #15238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ When traversing paths in nibbles, we may end up with an odd number of nibbles to

The flagging of both _odd vs. even remaining partial path length_ and _leaf vs. extension node_ as described above reside in the first nibble of the partial path of any 2-item node. They result in the following:

hex char bits | node type partial path length
----------------------------------------------------------
0 0000 | extension even
1 0001 | extension odd
2 0010 | terminating (leaf) even
3 0011 | terminating (leaf) odd
| Hex Char | Bits | Node Type Partial | Path Length |
|----------|-------|----------------------|-------------|
| 0 | 0000 | Extension | Even |
| 1 | 0001 | Extension | Odd |
| 2 | 0010 | Terminating (leaf) | Even |
| 3 | 0011 | Terminating (leaf) | Odd |

For even remaining path length (`0` or `2`), another `0` "padding" nibble will always follow.

Expand Down