trie

package
v0.0.0-...-9b87918 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyLeafKey             = errors.New("the leaf node has empty key")
	ErrDifferentLeafPrefix      = errors.New("the leaf prifix path is different")
	ErrEmptyExtensionPrefix     = errors.New("the extension node has empty prefix")
	ErrDifferentExtensionPrefix = errors.New("the prifix path of extension node is different")
)

Functions

func DecodeTrieNode

func DecodeTrieNode(hash, buf []byte) (node, error)

func TraverseTrieNode

func TraverseTrieNode(node node, path []byte) ([]byte, []byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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