Expand description
Reference implementation of a streamer.
Modules§
- node
- trie_
constants - Constants specific to encoding with external value node support.
Macros§
- paste
- test_
layouts - Apply a test method on every test layouts.
- test_
layouts_ no_ meta - Apply a test method on every test layouts.
- test_
layouts_ substrate
Structs§
- Allow
Empty Layout - Trie that allows empty values.
- Bitmap
- Children bitmap codec for radix 16 trie.
- Extension
Layout - Trie layout using extension nodes.
- Generic
NoExtension Layout - Trie layout without extension nodes, allowing generic hasher.
- Hashed
Value NoExt - No extension trie with no hashed value.
- Hashed
Value NoExt Threshold - No extension trie which stores value above a static size as external node.
- Reference
Node Codec - Simple reference implementation of a
NodeCodec
. - Reference
Node Codec NoExt - Simple reference implementation of a
NodeCodec
. Even if implementation follows initial specification of https://github.com/w3f/polkadot-re-spec/issues/8, this may not follow it in the future, it is mainly the testing codec without extension node. - Reference
Node Codec NoExt Meta - Reference
Trie Stream - Reference implementation of a
TrieStream
with extension nodes. - Reference
Trie Stream NoExt - Reference implementation of a
TrieStream
without extension. - Substrate
V0 - substrate trie layout
- Substrate
V1 - substrate trie layout, with external value nodes.
- Test
Trie Cache - Example trie cache implementation.
Traits§
- Trie
Stream - Byte-stream oriented trait for constructing closed-form tries.
Functions§
- calc_
root - Trie builder root calculation utility.
- calc_
root_ build - Trie builder trie building utility.
- compare_
implementations - Compare trie builder and in memory trie.
- compare_
implementations_ unordered compare_implementations_no_extension
for unordered input (trie_root does ordering before running when trie_build expect correct ordering).- compare_
insert_ remove - Testing utility that uses some periodic removal over its input test data.
- compare_
root - Compare trie builder and trie root implementations.
- compare_
unhashed - Compare trie builder and trie root unhashed implementations.
- compare_
unhashed_ no_ extension - Compare trie builder and trie root unhashed implementations. This uses the variant without extension nodes.
- reference_
trie_ root - reference_
trie_ root_ iter_ build
Type Aliases§
- NoExtension
Layout - Trie layout without extension nodes.
- RefFatDB
- RefFatDB
Mut - RefHasher
- Reference hasher is a keccak hasher.
- RefLookup
- RefLookup
NoExt - RefSec
TrieDB - RefSec
TrieDB Mut - RefTest
TrieDB Cache - RefTest
TrieDB Cache NoExt - RefTrieDB
- RefTrieDB
Builder - RefTrieDB
Mut - RefTrieDB
MutAllow Empty - RefTrieDB
MutAllow Empty Builder - RefTrieDB
MutBuilder - RefTrieDB
MutNo Ext - RefTrieDB
MutNo ExtBuilder