Skip to content
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

feat: empty root node #36

Merged
merged 2 commits into from
Sep 17, 2024
Merged

feat: empty root node #36

merged 2 commits into from
Sep 17, 2024

Conversation

rkrasiuk
Copy link
Member

Description

Adds TrieNode::EmptyRoot variant. Proofs for empty trie now contain at least empty root node.

Copy link

@clabby clabby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. We currently work around this on the consumer end of alloy-trie, but will be nice to have support for getting an empty node in the proof retainer w/o handling that special case.

@rkrasiuk rkrasiuk marked this pull request as ready for review September 17, 2024 18:38
@rkrasiuk rkrasiuk merged commit 73ff484 into main Sep 17, 2024
21 checks passed
@rkrasiuk rkrasiuk deleted the rkrasiuk/empty-root-node branch September 17, 2024 20:45
Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

src/proof/verify.rs Show resolved Hide resolved
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.

3 participants