share_eds_byzantine_pb

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 6 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 Share

type Share struct {
	Data      []byte    `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"`
	Proof     *pb.Proof `protobuf:"bytes,2,opt,name=Proof,proto3" json:"Proof,omitempty"`
	ProofAxis Axis      `protobuf:"varint,3,opt,name=ProofAxis,proto3,enum=share.eds.byzantine.pb.Axis" json:"ProofAxis,omitempty"`
}

func (*Share) Descriptor

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

func (*Share) GetData

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

func (*Share) GetProof

func (m *Share) GetProof() *pb.Proof

func (*Share) GetProofAxis added in v0.14.0

func (m *Share) GetProofAxis() Axis

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