Expand description
Merkle trie implementation for Ethereum.
Modules§
- merkle
- Merkle types.
Structs§
- AnySecure
Trie Mut - Represents a secure mutable trie where the key is hashed, and operated on any RLP values.
- AnyTrie
Mut - Represents a mutable trie that is operated on any RLP values.
- Change
- Change for a merkle trie operation.
- Fixed
Secure Trie Mut - Represents a secure mutable trie where the key is hashed, and operated on a fixed RLP value type.
- Fixed
Trie Mut - Represents a mutable trie that is operated on a fixed RLP value type.
- Memory
Trie Mut - A memory-backed trie.
- Secure
Trie Mut - Represents a secure mutable trie where the key is hashed.
Traits§
- Database
Handle - An immutable database handle.
- TrieMut
- Represents a trie that is mutable.
Functions§
- build
- Build a merkle trie from a map. Return the root hash and the changes.
- delete
- Delete a key from a markle trie. Return the new root hash and the changes.
- empty_
trie_ hash - Get the empty trie hash for merkle trie.
- get
- Get a value given the root hash and the database.
- insert
- Insert to a merkle trie. Return the new root hash and the changes.
- insert_
empty - Insert to an empty merkle trie. Return the new root hash and the changes.
Type Aliases§
- AnyMemory
Trie Mut - A memory-backed trie where the value is operated on any RLP values.
- AnySecure
Memory Trie Mut - A memory-backed trie where the key is hashed and the value is operated on any RLP values.
- Fixed
Memory Trie Mut - A memory-backed trie where the value is operated on a fixed RLP value type.
- Fixed
Secure Memory Trie Mut - A memory-backed trie where the key is hashed and the value is operated on a fixed RLP value type.
- Secure
Memory Trie Mut - A memory-backed trie where the key is hashed.