Documentation ¶
Index ¶
Constants ¶
View Source
const (
ConfigUseKeccak256 = false
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Immutable ¶
type Immutable interface { Empty() bool // Get returns the value stored under the specified key, or nil if the key doesn't exist. Get(k []byte) ([]byte, error) Hash() []byte // return nil if this Tree is empty GetProof(k []byte) [][]byte // return nill of this Tree is empty Iterator() Iterator Filter(prefix []byte) Iterator Equal(immutable Immutable, exact bool) bool Prove(k []byte, p [][]byte) ([]byte, error) Resolve(builder merkle.Builder) ClearCache() }
type ImmutableForObject ¶
type ImmutableForObject interface { Empty() bool Get(k []byte) (Object, error) Hash() []byte GetProof(k []byte) [][]byte // return nill of this Tree is empty Iterator() IteratorForObject Filter(prefix []byte) IteratorForObject Equal(object ImmutableForObject, exact bool) bool Prove(k []byte, p [][]byte) (Object, error) Resolve(builder merkle.Builder) ClearCache() }
type IteratorForObject ¶
type MutableForObject ¶
type MutableForObject interface { Get(k []byte) (Object, error) Set(k []byte, o Object) error Delete(k []byte) error GetSnapshot() SnapshotForObject Reset(s ImmutableForObject) ClearCache() }
type SnapshotForObject ¶
type SnapshotForObject interface { ImmutableForObject Flush() error }
Click to show internal directories.
Click to hide internal directories.