Versions in this module Expand all Collapse all v0 v0.0.2 May 13, 2020 v0.0.1 May 13, 2020 Changes in this version + func SimpleHashFromBytes(bz []byte) []byte + func SimpleHashFromByteslices(bzs [][]byte) []byte + func SimpleHashFromHashers(items []Hasher) []byte + func SimpleHashFromHashes(hashes [][]byte) []byte + func SimpleHashFromMap(m map[string]Hasher) []byte + func SimpleHashFromTwoHashes(left []byte, right []byte) []byte + type Hasher interface + Hash func() []byte + type KVPair cmn.KVPair + func (kv KVPair) Hash() []byte + type SimpleMap struct + func NewSimpleMap() *SimpleMap + func (sm *SimpleMap) Hash() []byte + func (sm *SimpleMap) KVPairs() cmn.KVPairs + func (sm *SimpleMap) Set(key string, value Hasher) + func (sm *SimpleMap) Sort() + type SimpleProof struct + Aunts [][]byte + func SimpleProofsFromHashers(items []Hasher) (rootHash []byte, proofs []*SimpleProof) + func SimpleProofsFromMap(m map[string]Hasher) (rootHash []byte, proofs []*SimpleProof) + func (sp *SimpleProof) String() string + func (sp *SimpleProof) StringIndented(indent string) string + func (sp *SimpleProof) Verify(index int, total int, leafHash []byte, rootHash []byte) bool + type SimpleProofNode struct + Hash []byte + Left *SimpleProofNode + Parent *SimpleProofNode + Right *SimpleProofNode + func (spn *SimpleProofNode) FlattenAunts() [][]byte + type Tree interface + Copy func() Tree + Get func(key []byte) (index int, value []byte, exists bool) + GetByIndex func(index int) (key []byte, value []byte) + Has func(key []byte) (has bool) + Hash func() (hash []byte) + HashWithCount func() (hash []byte, count int) + Height func() (height int8) + Iterate func(func(key []byte, value []byte) (stop bool)) (stopped bool) + IterateRange func(start []byte, end []byte, ascending bool, ...) (stopped bool) + Load func(hash []byte) + Proof func(key []byte) (value []byte, proof []byte, exists bool) + Remove func(key []byte) (value []byte, removed bool) + Save func() (hash []byte) + Set func(key []byte, value []byte) (updated bool) + Size func() (size int)