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

Fix verifyWitness embedded extension-branch #24

Merged
merged 1 commit into from
Aug 21, 2018
Merged

Conversation

no2chem
Copy link
Member

@no2chem no2chem commented Aug 21, 2018

It seems that verify witness fails when there is an embedded extension branch. This causes an "Unexpected end of proof error".

This can occur if there are small values and keys.

A simple tree that causes this error can be created by executing:

put(a, a)
put(b, b)
put(c, c)

This PR fixes VerifyWitness to handle this case.

This seems to be a bug inherited from the upstream project and should be fixed there as well.
A PR has been opened under ethereumjs/merkle-patricia-tree#51

@no2chem no2chem merged commit 9e2b52d into master Aug 21, 2018
@no2chem no2chem deleted the verifyBranchFix branch August 21, 2018 21:46
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.

1 participant