pb

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthShare        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowShare          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupShare = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type MerkleProof

type MerkleProof struct {
	Start    int64    `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
	End      int64    `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
	Nodes    [][]byte `protobuf:"bytes,3,rep,name=nodes,proto3" json:"nodes,omitempty"`
	LeafHash []byte   `protobuf:"bytes,4,opt,name=leaf_hash,json=leafHash,proto3" json:"leaf_hash,omitempty"`
}

func (*MerkleProof) Descriptor

func (*MerkleProof) Descriptor() ([]byte, []int)

func (*MerkleProof) GetEnd

func (m *MerkleProof) GetEnd() int64

func (*MerkleProof) GetLeafHash

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

func (*MerkleProof) GetNodes

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

func (*MerkleProof) GetStart

func (m *MerkleProof) GetStart() int64

func (*MerkleProof) Marshal

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

func (*MerkleProof) MarshalTo

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

func (*MerkleProof) MarshalToSizedBuffer

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

func (*MerkleProof) ProtoMessage

func (*MerkleProof) ProtoMessage()

func (*MerkleProof) Reset

func (m *MerkleProof) Reset()

func (*MerkleProof) Size

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

func (*MerkleProof) String

func (m *MerkleProof) String() string

func (*MerkleProof) Unmarshal

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

func (*MerkleProof) XXX_DiscardUnknown

func (m *MerkleProof) XXX_DiscardUnknown()

func (*MerkleProof) XXX_Marshal

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

func (*MerkleProof) XXX_Merge

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

func (*MerkleProof) XXX_Size

func (m *MerkleProof) XXX_Size() int

func (*MerkleProof) XXX_Unmarshal

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

type Share

type Share struct {
	Data  []byte       `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"`
	Proof *MerkleProof `protobuf:"bytes,2,opt,name=Proof,proto3" json:"Proof,omitempty"`
}

func (*Share) Descriptor

func (*Share) Descriptor() ([]byte, []int)

func (*Share) GetData

func (m *Share) GetData() []byte

func (*Share) GetProof

func (m *Share) GetProof() *MerkleProof

func (*Share) Marshal

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

func (*Share) MarshalTo

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

func (*Share) MarshalToSizedBuffer

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

func (*Share) ProtoMessage

func (*Share) ProtoMessage()

func (*Share) Reset

func (m *Share) Reset()

func (*Share) Size

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

func (*Share) String

func (m *Share) String() string

func (*Share) Unmarshal

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

func (*Share) XXX_DiscardUnknown

func (m *Share) XXX_DiscardUnknown()

func (*Share) XXX_Marshal

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

func (*Share) XXX_Merge

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

func (*Share) XXX_Size

func (m *Share) XXX_Size() int

func (*Share) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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