share_eds_byzantine_pb

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 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")
)
View Source
var Axis_name = map[int32]string{
	0: "ROW",
	1: "COL",
}
View Source
var Axis_value = map[string]int32{
	"ROW": 0,
	"COL": 1,
}

Functions

This section is empty.

Types

type Axis

type Axis int32
const (
	Axis_ROW Axis = 0
	Axis_COL Axis = 1
)

func (Axis) EnumDescriptor

func (Axis) EnumDescriptor() ([]byte, []int)

func (Axis) String

func (x Axis) String() string

type BadEncoding

type BadEncoding struct {
	HeaderHash []byte   `protobuf:"bytes,1,opt,name=HeaderHash,proto3" json:"HeaderHash,omitempty"`
	Height     uint64   `protobuf:"varint,2,opt,name=Height,proto3" json:"Height,omitempty"`
	Shares     []*Share `protobuf:"bytes,3,rep,name=Shares,proto3" json:"Shares,omitempty"`
	Index      uint32   `protobuf:"varint,4,opt,name=Index,proto3" json:"Index,omitempty"`
	Axis       Axis     `protobuf:"varint,5,opt,name=Axis,proto3,enum=share.eds.byzantine.pb.Axis" json:"Axis,omitempty"`
}

func (*BadEncoding) Descriptor

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

func (*BadEncoding) GetAxis

func (m *BadEncoding) GetAxis() Axis

func (*BadEncoding) GetHeaderHash

func (m *BadEncoding) GetHeaderHash() []byte

func (*BadEncoding) GetHeight

func (m *BadEncoding) GetHeight() uint64

func (*BadEncoding) GetIndex

func (m *BadEncoding) GetIndex() uint32

func (*BadEncoding) GetShares

func (m *BadEncoding) GetShares() []*Share

func (*BadEncoding) Marshal

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

func (*BadEncoding) MarshalTo

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

func (*BadEncoding) MarshalToSizedBuffer

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

func (*BadEncoding) ProtoMessage

func (*BadEncoding) ProtoMessage()

func (*BadEncoding) Reset

func (m *BadEncoding) Reset()

func (*BadEncoding) Size

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

func (*BadEncoding) String

func (m *BadEncoding) String() string

func (*BadEncoding) Unmarshal

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

func (*BadEncoding) XXX_DiscardUnknown

func (m *BadEncoding) XXX_DiscardUnknown()

func (*BadEncoding) XXX_Marshal

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

func (*BadEncoding) XXX_Merge

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

func (*BadEncoding) XXX_Size

func (m *BadEncoding) XXX_Size() int

func (*BadEncoding) XXX_Unmarshal

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

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