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§
- AllowEmpty Layout 
- Trie that allows empty values.
- Bitmap
- Children bitmap codec for radix 16 trie.
- ExtensionLayout 
- Trie layout using extension nodes.
- GenericNoExtension Layout 
- Trie layout without extension nodes, allowing generic hasher.
- HashedValue NoExt 
- No extension trie with no hashed value.
- HashedValue NoExt Threshold 
- No extension trie which stores value above a static size as external node.
- ReferenceNode Codec 
- Simple reference implementation of a NodeCodec.
- ReferenceNode 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.
- ReferenceNode Codec NoExt Meta 
- ReferenceTrie Stream 
- Reference implementation of a TrieStreamwith extension nodes.
- ReferenceTrie Stream NoExt 
- Reference implementation of a TrieStreamwithout extension.
- SubstrateV0 
- substrate trie layout
- SubstrateV1 
- substrate trie layout, with external value nodes.
- TestTrie Cache 
- Example trie cache implementation.
Traits§
- TrieStream 
- 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_extensionfor 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§
- NoExtensionLayout 
- Trie layout without extension nodes.
- RefFatDB
- RefFatDBMut 
- RefHasher
- Reference hasher is a keccak hasher.
- RefLookup
- RefLookupNoExt 
- RefSecTrieDB 
- RefSecTrieDB Mut 
- RefTestTrieDB Cache 
- RefTestTrieDB Cache NoExt 
- RefTrieDB
- RefTrieDBBuilder 
- RefTrieDBMut 
- RefTrieDBMutAllow Empty 
- RefTrieDBMutAllow Empty Builder 
- RefTrieDBMutBuilder 
- RefTrieDBMutNo Ext 
- RefTrieDBMutNo ExtBuilder