-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Improve APIs for Tries in Runtime #5756
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
Merged
Merged
Changes from 88 commits
Commits
Show all changes
104 commits
Select commit
Hold shift + click to select a range
d50d5e4
initial ideas
shawntabrizi 7f4422e
Update proving_trie.rs
shawntabrizi bdc0c84
create trait
shawntabrizi da385ab
use trait
shawntabrizi 6ab4bfb
clean up trait and basic trie further
shawntabrizi 1cfb29f
use trait in session historical
shawntabrizi 3080c7b
fix api, add basic end to end test
shawntabrizi 39b0fca
fix test
shawntabrizi 599f576
Revert "use trait in session historical"
shawntabrizi a1c8886
Merge branch 'master' into shawntabrizi-proving-trie
shawntabrizi 6bde2a3
Merge branch 'master' into shawntabrizi-proving-trie
Ank4n ead7951
Update substrate/primitives/runtime/src/proving_trie.rs
shawntabrizi 0cac048
Merge branch 'master' into shawntabrizi-proving-trie
shawntabrizi acfe734
fix some feedback
shawntabrizi 45f4287
update name
shawntabrizi efbe1c9
docs and multi value proof
shawntabrizi cfa62ce
improve test
shawntabrizi 885fd94
add multi-value query test
shawntabrizi 18a5c2e
Merge branch 'master' into shawntabrizi-proving-trie
shawntabrizi 5e3e518
Create pr_3881.prdoc
shawntabrizi f35cacc
Merge branch 'shawntabrizi-proving-trie' of https://github.com/shawnt…
shawntabrizi e6c3759
use v1
shawntabrizi 89679c3
Merge branch 'master' into shawntabrizi-proving-trie
shawntabrizi b40c96a
initial idea
shawntabrizi 37052ee
some bs code to make things compile
shawntabrizi 08f2b35
more stuff
shawntabrizi 118a51c
complete logic
shawntabrizi 44bc5bb
add verification check
shawntabrizi 6e853ba
Merge branch 'master' into shawntabrizi-proving-trie
shawntabrizi 89abcd0
initial idea
shawntabrizi 8ad3381
some bs code to make things compile
shawntabrizi ae6fab7
more stuff
shawntabrizi 115f89b
complete logic
shawntabrizi e5f0056
add verification check
shawntabrizi 766790a
Merge branch 'shawntabrizi-assets-distribution' of https://github.com…
shawntabrizi b80589c
large refactor to proving trie
shawntabrizi 83c66e7
fix tests
shawntabrizi 5a4ff43
use basic proving trie
shawntabrizi 394cc6f
Merge branch 'master' into shawntabrizi-assets-distribution
shawntabrizi 84574e1
undo changes to binary merkle tree
shawntabrizi 444b1f7
remove comment code
shawntabrizi f47b12e
make api more runtime friendly
shawntabrizi 0305bc7
Merge remote-tracking branch 'upstream/master' into shawntabrizi-asse…
shawntabrizi ee90711
add basic test, and fix missing check for tracking distribution
shawntabrizi 61162b6
introduce distribution info and active
shawntabrizi ae2ff18
introduce end_distribution
shawntabrizi fb63207
add clean distribution
shawntabrizi e713698
Merge branch 'master' into shawntabrizi-assets-distribution
shawntabrizi 988b201
weight stuff
shawntabrizi 233d339
temp fix for ui
shawntabrizi 48fe9c6
Merge branch 'master' into pr/5400
shawntabrizi 122f9cc
make work with binary tree
shawntabrizi 59fdc63
initial stuff
shawntabrizi 1f587ef
more
shawntabrizi dbb8368
Merge branch 'master' into shawntabrizi-binary-trie2
shawntabrizi f3a1af0
initial stuff
shawntabrizi daf8f50
more
shawntabrizi 133a440
fix up binary tree
shawntabrizi 813caae
refactor
shawntabrizi e270275
fixes
shawntabrizi a679bc9
update api for a single opaque blob
shawntabrizi be3e6c4
Merge branch 'master' into shawntabrizi-binary-trie2
shawntabrizi 65d2b98
undo changes in assets
shawntabrizi ed30142
undo weight
shawntabrizi 39e78d7
Update substrate/frame/support/src/traits/proving.rs
shawntabrizi aabaf76
Merge branch 'master' into shawntabrizi-binary-trie2
shawntabrizi 450b6c6
consolidate apis
shawntabrizi d153c74
Merge branch 'shawntabrizi-binary-trie2' of https://github.com/parity…
shawntabrizi 240a777
create a proving trie trait
shawntabrizi 0f1e28b
implement trait for base2
shawntabrizi 375dc12
fix tests
shawntabrizi 99135e4
Merge branch 'master' into shawntabrizi-binary-trie2
shawntabrizi 3ab4d94
update api to use references everywhere
shawntabrizi 0c8d189
add `proof_size_to_hashes`
shawntabrizi cfa2a79
Merge branch 'master' into shawntabrizi-binary-trie2
shawntabrizi 21a13c9
Create pr_5756.prdoc
shawntabrizi 46ee7e0
undo changes to proving.rs
shawntabrizi d5bc012
Merge branch 'master' into shawntabrizi-binary-trie2
shawntabrizi 39b666a
feedback
shawntabrizi 5d05ef5
Merge branch 'shawntabrizi-binary-trie2' of https://github.com/parity…
shawntabrizi fd68b1b
create proof size to hashes trait
shawntabrizi 2ad1bb2
use proof to hashes
shawntabrizi 1b3db91
fix doc
shawntabrizi 6e33438
Update pr_5756.prdoc
shawntabrizi 245709e
Merge branch 'master' into shawntabrizi-binary-trie2
shawntabrizi 74d9adf
Update base16.rs
shawntabrizi 8135a69
Update prdoc/pr_5756.prdoc
shawntabrizi ae231f8
Merge branch 'master' into shawntabrizi-binary-trie2
shawntabrizi f1eb268
Update prdoc/pr_5756.prdoc
shawntabrizi 02e396e
Update substrate/primitives/runtime/src/proving_trie/base2.rs
shawntabrizi 18fb3d6
Update substrate/primitives/runtime/src/proving_trie/base2.rs
shawntabrizi a67c806
Merge branch 'master' into shawntabrizi-binary-trie2
shawntabrizi 687f2b1
Merge branch 'master' into shawntabrizi-binary-trie2
shawntabrizi 56cd568
fix test
shawntabrizi a25052c
Merge branch 'shawntabrizi-binary-trie2' of https://github.com/parity…
shawntabrizi 43c93b6
Merge branch 'master' into shawntabrizi-binary-trie2
shawntabrizi fcb3714
fix docs
shawntabrizi fb90f63
Merge branch 'shawntabrizi-binary-trie2' of https://github.com/parity…
shawntabrizi fe68034
improve proof_to_hashes
shawntabrizi f40d0d0
impl prooftohashes for provers
shawntabrizi 904fe42
Update pr_5756.prdoc
shawntabrizi bf128aa
Update Cargo.toml
shawntabrizi c8066ce
Merge branch 'shawntabrizi-binary-trie2' of https://github.com/parity…
shawntabrizi a4efeef
Merge branch 'master' into shawntabrizi-binary-trie2
shawntabrizi 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0 | ||
| # See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json | ||
|
|
||
| title: Benchmark Friendly Tries for the Runtime | ||
|
|
||
| doc: | ||
| - audience: Runtime Dev | ||
| description: | | ||
| This PR introduces a trait `ProvingTrie` which has all the function you need to use tries in the runtime. | ||
| This trait includes the ability to create, query, and prove data in a trie. Another trait `ProofToHashes` | ||
| allows developers to express the computational complexity of proof verification using the proof data. | ||
| crates: | ||
| - name: sp-runtime | ||
| bump: major | ||
This file contains hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.