Versions in this module Expand all Collapse all v0 v0.5.0 Jul 12, 2019 Changes in this version + type Flag int + type Node struct + Hash *crypto.HashType + Value [][]byte + func (n *Node) BranchLen() int + func (n *Node) FirstSubNodeHashInBranch() (*crypto.HashType, int) + func (n *Node) FromProtoMessage(msg proto.Message) error + func (n *Node) Marshal() (data []byte, err error) + func (n *Node) ToProtoMessage() (proto.Message, error) + func (n *Node) Type() Flag + func (n *Node) Unmarshal(data []byte) error + type Trie struct + func New(rootHash *crypto.HashType, db storage.Table) (*Trie, error) + func (t *Trie) Commit() (*crypto.HashType, error) + func (t *Trie) Delete(key []byte) error + func (t *Trie) Get(key []byte) ([]byte, error) + func (t *Trie) Hash() crypto.HashType + func (t *Trie) String() string + func (t *Trie) Update(key, value []byte) error