triedb

package
v0.15.13 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PathScheme string = "path"
	HashScheme string = "hash"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PathConfig *pathdb.Config
	HashConfig *hashdb.Config
}

type Database

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

func New

func New(disk db.KeyValueStore, config *Config) (*Database, error)

func (*Database) Close

func (d *Database) Close() error

func (*Database) Journal added in v0.15.12

func (d *Database) Journal(root *felt.Felt) error

func (*Database) NewIterator

func (d *Database) NewIterator(id trieutils.TrieID) (db.Iterator, error)

func (*Database) NodeReader

func (d *Database) NodeReader(id trieutils.TrieID) (database.NodeReader, error)

func (*Database) Scheme added in v0.15.12

func (d *Database) Scheme() string

func (*Database) Update

func (d *Database) Update(
	root,
	parent *felt.Felt,
	blockNum uint64,
	mergeClassNodes,
	mergeContractNodes *trienode.MergeNodeSet,
) error

type EmptyNodeDatabase

type EmptyNodeDatabase struct{}

func NewEmptyNodeDatabase

func NewEmptyNodeDatabase() *EmptyNodeDatabase

func (EmptyNodeDatabase) NodeReader

type EmptyNodeReader

type EmptyNodeReader struct{}

func (EmptyNodeReader) Node

func (EmptyNodeReader) Node(owner *felt.Felt, path *trieutils.Path, hash *felt.Felt, isLeaf bool) ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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