Documentation ¶
Index ¶
- func Combine(l, r []byte) []byte
- func MerkleCascade(cascade, hashList [][]byte, maxHeight int64) [][]byte
- type Hasher
- func (h *Hasher) AddBigInt(v *big.Int)
- func (h *Hasher) AddBool(v bool)
- func (h *Hasher) AddBytes(v []byte)
- func (h *Hasher) AddDuration(v time.Duration)
- func (h *Hasher) AddEnum(v interface{ ... })
- func (h *Hasher) AddHash(v *[32]byte)
- func (h *Hasher) AddInt(v int64)
- func (h *Hasher) AddString(v string)
- func (h *Hasher) AddTime(v time.Time)
- func (h *Hasher) AddUint(v uint64)
- func (h *Hasher) AddUrl(v *url.URL)
- func (h *Hasher) AddValue(v interface{ ... })
- func (h Hasher) MerkleHash() []byte
- func (h Hasher) Receipt(start, anchor int) *managed.Receipt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MerkleCascade ¶ added in v1.0.0
MerkleCascade calculates a Merkle cascade for a hash list. MerkleCascade can add hashes to an existing cascade or calculate a new cascade. If maxHeight is positive, MerkleCascade will stop at that height.
Types ¶
Click to show internal directories.
Click to hide internal directories.