Skip to content

Reject non-canonical trie hex-prefix paths#735

Open
Kuhai9801 wants to merge 1 commit into
risc0:mainfrom
Kuhai9801:reject-noncanonical-trie-paths
Open

Reject non-canonical trie hex-prefix paths#735
Kuhai9801 wants to merge 1 commit into
risc0:mainfrom
Kuhai9801:reject-noncanonical-trie-paths

Conversation

@Kuhai9801

Copy link
Copy Markdown

Summary

  • reject even MPT hex-prefix encodings with a non-zero filler nibble
  • add regression coverage for canonical and non-canonical leaf and extension paths

Fixes #734

Testing

  • cargo fmt --all --check
  • cargo test -p risc0-ethereum-trie rejects_noncanonical_even_hex_prefix_paths
  • cargo test -p risc0-ethereum-trie

@Kuhai9801 Kuhai9801 marked this pull request as ready for review June 8, 2026 13:34
@Kuhai9801 Kuhai9801 requested review from a team as code owners June 8, 2026 13:34
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.

[BUG] Trie decoder accepts non-canonical MPT hex-prefix paths

1 participant