-
Notifications
You must be signed in to change notification settings - Fork 112
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(lib/runtime): Implement trie_blake2_256_verify_proof
host function
#1920
Merged
Merged
Changes from all commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
7dd7c4b
feat: add verify_proof function
EclesioMeloJunior e6a3415
chore: adding helpers
EclesioMeloJunior cff7280
chore: build the tree from proof slice
EclesioMeloJunior 2d816a4
chore: remove Nibbles custom type
EclesioMeloJunior 6a4552a
Merge branch 'development' into eclesio/verify-proof
EclesioMeloJunior e6a02d8
chore: fix lint warns
EclesioMeloJunior 71cb795
Merge branch 'eclesio/verify-proof' of github.com:ChainSafe/gossamer …
EclesioMeloJunior e92276b
chore: add benchmark tests
EclesioMeloJunior 493dddb
chore: fix deepsource warns
EclesioMeloJunior c129de5
Merge branch 'development' into eclesio/verify-proof
EclesioMeloJunior 4de95ec
Merge branch 'development' into eclesio/verify-proof
EclesioMeloJunior 9455e13
chore: redefine LoadFromProof function
EclesioMeloJunior e8d4912
chore: remove logs
EclesioMeloJunior 10dd296
chore: address comments
EclesioMeloJunior 34b8dd0
Merge branch 'development' into eclesio/verify-proof
EclesioMeloJunior 35abff5
Merge branch 'development' into eclesio/verify-proof
EclesioMeloJunior e3debb7
Merge branch 'development' into eclesio/verify-proof
EclesioMeloJunior 8e4a1c1
chore: fix the condition to load the proof
EclesioMeloJunior 76893e2
chore: address comments
EclesioMeloJunior 7ee1756
Merge branch 'development' into eclesio/verify-proof
EclesioMeloJunior c07ab85
chore: create test cases
EclesioMeloJunior 7f24a65
chore: improve find function
EclesioMeloJunior 5a6d3f8
chore: use map to avoid duplicate keys
EclesioMeloJunior 8bd6a33
chore: add test cases to duplicate values and nil values
EclesioMeloJunior f4081ba
chore: fix unused param lint error
EclesioMeloJunior d8a5e41
chore: use the shortest form
EclesioMeloJunior 6465be8
chore: use set just for find dupl keys
EclesioMeloJunior 6204ba4
Merge branch 'development' into eclesio/verify-proof
EclesioMeloJunior c0a88a9
chore: fixing test cases
EclesioMeloJunior 8836808
Merge branch 'eclesio/verify-proof' into eclesio/runtime-verify-proof
EclesioMeloJunior 0193014
wip: waiting w3f response about host fun
EclesioMeloJunior 8406e94
chore: trie without rtm prefix
EclesioMeloJunior 7fe1e94
feat: add ext_trie_blake2_256_verify_proof_version_1 host function
EclesioMeloJunior ee4a4a4
Merge branch 'development' into eclesio/runtime-verify-proof
EclesioMeloJunior 3c92e65
Merge branch 'development' into eclesio/runtime-verify-proof
EclesioMeloJunior b23be22
chore: remove uneeded condition
EclesioMeloJunior cf034a0
Merge branch 'eclesio/runtime-verify-proof' of github.com:ChainSafe/g…
EclesioMeloJunior 81ce63d
chore: put back test main
EclesioMeloJunior a426769
chore: fix tests
EclesioMeloJunior 5c28b75
Merge branch 'development' into eclesio/runtime-verify-proof
EclesioMeloJunior fd00ea1
chore: group param to one type
EclesioMeloJunior 5a31f8e
chore: improve verify proof condition and simplify errors comments
EclesioMeloJunior d006213
Merge branch 'development' into eclesio/runtime-verify-proof
EclesioMeloJunior 05c28d0
Merge branch 'development' into eclesio/runtime-verify-proof
EclesioMeloJunior 020b04c
Merge branch 'development' into eclesio/runtime-verify-proof
EclesioMeloJunior ec95003
Merge branch 'development' into eclesio/runtime-verify-proof
EclesioMeloJunior df5c7db
Merge branch 'development' into eclesio/runtime-verify-proof
noot d16881e
Merge branch 'development' into eclesio/runtime-verify-proof
noot c4eb31f
Merge branch 'development' into eclesio/runtime-verify-proof
noot de632e8
Merge branch 'development' into eclesio/runtime-verify-proof
EclesioMeloJunior b879c61
Merge branch 'development' into eclesio/runtime-verify-proof
noot be909f2
Merge branch 'development' into eclesio/runtime-verify-proof
EclesioMeloJunior c988651
Merge branch 'development' into eclesio/runtime-verify-proof
EclesioMeloJunior 321dcb6
Merge branch 'development' into eclesio/runtime-verify-proof
EclesioMeloJunior 2960125
chore: remove tmp dir after test finish
EclesioMeloJunior 3cb4bf4
chore: update tests
EclesioMeloJunior 371ce96
chore: use map on tests
EclesioMeloJunior 76e8c44
chore: fix lint warns
EclesioMeloJunior a49d819
Merge branch 'development' into eclesio/runtime-verify-proof
EclesioMeloJunior 53ed87b
chore: update the polkadot-runtime commit
EclesioMeloJunior 3cbe155
Merge branch 'eclesio/runtime-verify-proof' of github.com:ChainSafe/g…
EclesioMeloJunior b2c1d13
chore: remove comment, add parallel to tests
EclesioMeloJunior 8f29223
chore: fix deepsource warns
EclesioMeloJunior 92828de
Merge branch 'development' into eclesio/runtime-verify-proof
EclesioMeloJunior 54f98cb
chore: create a client rather than the default client
EclesioMeloJunior b46a01a
chore: update verify-proof trie root param to u32
EclesioMeloJunior c684da5
chore: change host api commit
EclesioMeloJunior 245cb35
Merge branch 'development' into eclesio/runtime-verify-proof
EclesioMeloJunior 2ada338
using ioutil.ReadAll
EclesioMeloJunior File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit nit I'm going to sound annoying, but you could actually use
context.WithTimeout(context.Background(), someTimeout)
and the default http client 😄 But the current implementation is good too 👍!