Skip to content

mpt: enforce embedded subnode RLP size < 32 in branch/extension validation#1498

Open
virajbhartiya wants to merge 1 commit intokkrt-labs:mainfrom
virajbhartiya:feat/rlp-encoding
Open

mpt: enforce embedded subnode RLP size < 32 in branch/extension validation#1498
virajbhartiya wants to merge 1 commit intokkrt-labs:mainfrom
virajbhartiya:feat/rlp-encoding

Conversation

@virajbhartiya
Copy link
Copy Markdown

Enforces the MPT rule that embedded nodes must RLP-encode to fewer than 32 bytes. We now check embedded subnodes in check_branch_node and check_extension_node and error if their RLP size is ≥ 32. This hardens trie validation without affecting valid tries.

Closes #1376.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: check_branch_node and check_extension_node should check that embedded nodes have valid size

1 participant