package
0.0.0-20190617050638-84d53aaf3fbf
Repository: https://github.com/medibloc/go-medibloc.git
Documentation: pkg.go.dev

# Packages

Package triepb is a generated protocol buffer package.

# Functions

BeginBatchCall is a begin batch call.
CommitCall is a commit call.
FlushCall is a flush call.
KeyToRoute 256 => 16 * 16.
NewBatch return new Batch instance.
NewTrie create and return new Trie instance.
PrepareCall is a prepare call.
ResetCall is a reset call.
RollbackCall is a rollback call.
RouteToKey convert route to key.

# Variables

Trie errors string representation.
Trie errors string representation.
Trie errors string representation.
Errors.
Trie errors string representation.
Errors.
Trie errors string representation.
Errors.

# Structs

Batch batch implementation for trie.
Iterator to traverse leaf node in a trie.
IteratorState represents the intermediate statue in iterator.
Trie is a Merkle Patricia Trie, consists of three kinds of nodes, Branch Node: 16-elements array, value is [hash_0, hash_1, ..., hash_f, hash] Extension Node: 3-elements array, value is [ext flag, prefix path, next hash] Leaf Node: 3-elements array, value is [leaf flag, suffix path, value].

# Interfaces

Batcher is an interface for batch commands.
Serializable interface for serializing/deserializing.

# Type aliases

BatchCallType is a type of batch call function.