trie

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2025 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