Documentation
¶
Index ¶
- Variables
- type Proof
- func (*Proof) Descriptor() ([]byte, []int)
- func (m *Proof) GetEnd() int64
- func (m *Proof) GetIsMaxNamespaceIgnored() bool
- func (m *Proof) GetLeafHash() []byte
- func (m *Proof) GetNodes() [][]byte
- func (m *Proof) GetStart() int64
- func (m *Proof) Marshal() (dAtA []byte, err error)
- func (m *Proof) MarshalTo(dAtA []byte) (int, error)
- func (m *Proof) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Proof) ProtoMessage()
- func (m *Proof) Reset()
- func (m *Proof) Size() (n int)
- func (m *Proof) String() string
- func (m *Proof) Unmarshal(dAtA []byte) error
- func (m *Proof) XXX_DiscardUnknown()
- func (m *Proof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Proof) XXX_Merge(src proto.Message)
- func (m *Proof) XXX_Size() int
- func (m *Proof) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Proof ¶
type Proof struct {
// Start index of the leaves that match the queried namespace.ID.
Start int64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
// End index (non-inclusive) of the leaves that match the queried
// namespace.ID.
End int64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
// Nodes hold the tree nodes necessary for the Merkle range proof.
Nodes [][]byte `protobuf:"bytes,3,rep,name=nodes,proto3" json:"nodes,omitempty"`
// leaf_hash contains the namespace.ID if NMT does not have it and
// it should be proven. LeafHash is necessary to prove the Absence Proof.
// This field will be empty in case of Inclusion Proof.
LeafHash []byte `protobuf:"bytes,4,opt,name=leaf_hash,json=leafHash,proto3" json:"leaf_hash,omitempty"`
// The is_max_namespace_ignored flag influences the calculation of the
// namespace ID range for intermediate nodes in the tree.
IsMaxNamespaceIgnored bool `` /* 129-byte string literal not displayed */
}
func (*Proof) Descriptor ¶
func (*Proof) GetIsMaxNamespaceIgnored ¶
func (*Proof) GetLeafHash ¶
func (*Proof) ProtoMessage ¶
func (*Proof) ProtoMessage()
func (*Proof) XXX_DiscardUnknown ¶
func (m *Proof) XXX_DiscardUnknown()
func (*Proof) XXX_Marshal ¶
func (*Proof) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.