Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Fix prove and verifyProof in SecureTrie #79

Merged
merged 1 commit into from
Feb 8, 2019
Merged

Fix prove and verifyProof in SecureTrie #79

merged 1 commit into from
Feb 8, 2019

Conversation

s1na
Copy link
Contributor

@s1na s1na commented Feb 8, 2019

SecureTrie hashes keys before put and get, however because it inherited CheckpointTrie's prove and verifyProof methods (which doesn't hash keys), the methods didn't work because they couldn't find nodes in the trie. This PR fixes that and adds a simple test case which fails without the fix but passes afterwards.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 93.656% when pulling fec6722 on fix/secure-proof into c315566 on master.

Copy link
Member

@holgerd77 holgerd77 left a comment

Choose a reason for hiding this comment

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

Looks good.

@holgerd77
Copy link
Member

Ah, but CI is partly failing. Have retriggered the push build.

@s1na
Copy link
Contributor Author

s1na commented Feb 8, 2019

Thanks, re-triggering seems to have fixed it. I think it was a timeout or something.

@s1na s1na merged commit 5ac7288 into master Feb 8, 2019
@s1na s1na deleted the fix/secure-proof branch February 8, 2019 12:48
@zmitton
Copy link
Contributor

zmitton commented Feb 15, 2019

fixed #43

@ryanio ryanio mentioned this pull request Apr 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants