Skip to content
Unverified Commit 05b5fb2b authored by Shawn Tabrizi's avatar Shawn Tabrizi Committed by GitHub
Browse files

Improve APIs for Tries in Runtime (#5756)



This is a refactor and improvement from:
https://github.com/paritytech/polkadot-sdk/pull/3881

- `sp_runtime::proving_trie` now exposes a `BasicProvingTrie` for both
`base2` and `base16`.
- APIs for `base16` are more focused on single value proofs, also
aligning their APIs with the `base2` trie
- A `ProvingTrie` trait is included which wraps both the `base2` and
`base16` trie, and exposes all APIs needed for an end to end scenario.
- A `ProofToHashes` trait is exposed which can allow us to write proper
benchmarks for the merkle trie.

---------

Co-authored-by: default avatarAnkan <[email protected]>
Co-authored-by: default avatarAdrian Catangiu <[email protected]>
parent df12fd34
Pipeline #499197 waiting for manual action with stages
in 35 minutes and 49 seconds