-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(lib/trie): Implement
verify_proof
function (#1883)
* feat: add verify_proof function * chore: adding helpers * chore: build the tree from proof slice * chore: remove Nibbles custom type * chore: fix lint warns * chore: add benchmark tests * chore: fix deepsource warns * chore: redefine LoadFromProof function * chore: remove logs * chore: address comments * chore: fix the condition to load the proof * chore: address comments * chore: improve find function * chore: use map to avoid duplicate keys * chore: add test cases to duplicate values and nil values * chore: fix unused param lint error * chore: use the shortest form * chore: use set just for find dupl keys
- Loading branch information
1 parent
0f63b17
commit 67bb5ef
Showing
5 changed files
with
263 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.