mptrie

package module
v0.0.0-...-66d84e9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2021 License: MIT Imports: 6 Imported by: 1

README

Ethereum Merkle Patricia Tree

References

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("mptrie: key not found")
)

Functions

This section is empty.

Types

type MPTrie

type MPTrie struct {
	// contains filtered or unexported fields
}

func New

func New() *MPTrie

func (*MPTrie) Clone

func (mpt *MPTrie) Clone() *MPTrie

func (*MPTrie) Delete

func (mpt *MPTrie) Delete(key []byte) error

func (*MPTrie) Encode

func (mpt *MPTrie) Encode() []byte

func (*MPTrie) Get

func (mpt *MPTrie) Get(key []byte) ([]byte, error)

func (*MPTrie) Hash

func (mpt *MPTrie) Hash() []byte

func (*MPTrie) Put

func (mpt *MPTrie) Put(key, val []byte) error

func (*MPTrie) String

func (mpt *MPTrie) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL