Documentation
¶
Overview ¶
Package sync provides sync types for merkledb. This is the ZAP-based implementation (zero protobuf).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeProof ¶
type ChangeProof struct {
StartProof []*ProofNode
EndProof []*ProofNode
KeyChanges []*KeyChange
HadRootsInHistory bool
}
ChangeProof represents a change proof
func (*ChangeProof) GetEndProof ¶
func (cp *ChangeProof) GetEndProof() []*ProofNode
func (*ChangeProof) GetHadRootsInHistory ¶
func (cp *ChangeProof) GetHadRootsInHistory() bool
func (*ChangeProof) GetKeyChanges ¶
func (cp *ChangeProof) GetKeyChanges() []*KeyChange
func (*ChangeProof) GetStartProof ¶
func (cp *ChangeProof) GetStartProof() []*ProofNode
type KeyChange ¶
type KeyChange struct {
Key []byte
Value *MaybeBytes
}
KeyChange represents a change to a key
func (*KeyChange) GetValue ¶
func (kc *KeyChange) GetValue() *MaybeBytes
type MaybeBytes ¶
MaybeBytes represents an optional byte slice
func (*MaybeBytes) GetIsNothing ¶
func (m *MaybeBytes) GetIsNothing() bool
func (*MaybeBytes) GetValue ¶
func (m *MaybeBytes) GetValue() []byte
type Proof ¶
type Proof struct {
Key []byte
Value *MaybeBytes
Proof []*ProofNode
}
Proof represents a merkle proof
func (*Proof) GetValue ¶
func (p *Proof) GetValue() *MaybeBytes
type ProofNode ¶
type ProofNode struct {
Key *Key
ValueOrHash *MaybeBytes
Children map[uint32][]byte
}
ProofNode represents a node in a merkle proof
func (*ProofNode) GetChildren ¶
func (*ProofNode) GetValueOrHash ¶
func (p *ProofNode) GetValueOrHash() *MaybeBytes
type RangeProof ¶
RangeProof represents a range proof
func (*RangeProof) GetEndProof ¶
func (rp *RangeProof) GetEndProof() []*ProofNode
func (*RangeProof) GetKeyValues ¶
func (rp *RangeProof) GetKeyValues() []*KeyValue
func (*RangeProof) GetStartProof ¶
func (rp *RangeProof) GetStartProof() []*ProofNode
Click to show internal directories.
Click to hide internal directories.