Crate trie [] [src]

Merkle trie implementation for Ethereum.

Modules

merkle

Merkle types.

Structs

AnySecureTrieMut

Represents a secure mutable trie where the key is hashed, and operated on any RLP values.

AnyTrieMut

Represents a mutable trie that is operated on any RLP values.

Change

Change for a merkle trie operation.

FixedSecureTrieMut

Represents a secure mutable trie where the key is hashed, and operated on a fixed RLP value type.

FixedTrieMut

Represents a mutable trie that is operated on a fixed RLP value type.

MemoryTrieMut

A memory-backed trie.

SecureTrieMut

Represents a secure mutable trie where the key is hashed.

Traits

DatabaseHandle

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 Definitions

AnyMemoryTrieMut

A memory-backed trie where the value is operated on any RLP values.

AnySecureMemoryTrieMut

A memory-backed trie where the key is hashed and the value is operated on any RLP values.

FixedMemoryTrieMut

A memory-backed trie where the value is operated on a fixed RLP value type.

FixedSecureMemoryTrieMut

A memory-backed trie where the key is hashed and the value is operated on a fixed RLP value type.

SecureMemoryTrieMut

A memory-backed trie where the key is hashed.