pb

package
v0.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthProof        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProof          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProof = fmt.Errorf("proto: unexpected end of group")
)

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) Descriptor() ([]byte, []int)

func (*Proof) GetEnd

func (m *Proof) GetEnd() int64

func (*Proof) GetIsMaxNamespaceIgnored

func (m *Proof) GetIsMaxNamespaceIgnored() bool

func (*Proof) GetLeafHash

func (m *Proof) GetLeafHash() []byte

func (*Proof) GetNodes

func (m *Proof) GetNodes() [][]byte

func (*Proof) GetStart

func (m *Proof) GetStart() int64

func (*Proof) Marshal

func (m *Proof) Marshal() (dAtA []byte, err error)

func (*Proof) MarshalTo

func (m *Proof) MarshalTo(dAtA []byte) (int, error)

func (*Proof) MarshalToSizedBuffer

func (m *Proof) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Proof) ProtoMessage

func (*Proof) ProtoMessage()

func (*Proof) Reset

func (m *Proof) Reset()

func (*Proof) Size

func (m *Proof) Size() (n int)

func (*Proof) String

func (m *Proof) String() string

func (*Proof) Unmarshal

func (m *Proof) Unmarshal(dAtA []byte) error

func (*Proof) XXX_DiscardUnknown

func (m *Proof) XXX_DiscardUnknown()

func (*Proof) XXX_Marshal

func (m *Proof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Proof) XXX_Merge

func (m *Proof) XXX_Merge(src proto.Message)

func (*Proof) XXX_Size

func (m *Proof) XXX_Size() int

func (*Proof) XXX_Unmarshal

func (m *Proof) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL