mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-30 19:51:58 +00:00
Merkle proofs!
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
package merkle
|
||||
|
||||
type Tree interface {
|
||||
Size() (size uint64)
|
||||
Size() (size uint)
|
||||
Height() (height uint8)
|
||||
Has(key interface{}) (has bool)
|
||||
Get(key interface{}) (index uint64, value interface{})
|
||||
GetByIndex(index uint64) (key interface{}, value interface{})
|
||||
Get(key interface{}) (index uint, value interface{})
|
||||
GetByIndex(index uint) (key interface{}, value interface{})
|
||||
Set(key interface{}, value interface{}) (updated bool)
|
||||
Remove(key interface{}) (value interface{}, removed bool)
|
||||
HashWithCount() (hash []byte, count uint64)
|
||||
HashWithCount() (hash []byte, count uint)
|
||||
Hash() (hash []byte)
|
||||
Save() (hash []byte)
|
||||
Load(hash []byte)
|
||||
|
Reference in New Issue
Block a user