pb

package
v0.18.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthShwap        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowShwap          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupShwap = fmt.Errorf("proto: unexpected end of group")
)
View Source
var AxisType_name = map[int32]string{
	0: "ROW",
	1: "COL",
}
View Source
var AxisType_value = map[string]int32{
	"ROW": 0,
	"COL": 1,
}
View Source
var Row_HalfSide_name = map[int32]string{
	0: "LEFT",
	1: "RIGHT",
}
View Source
var Row_HalfSide_value = map[string]int32{
	"LEFT":  0,
	"RIGHT": 1,
}

Functions

This section is empty.

Types

type AxisType

type AxisType int32
const (
	AxisType_ROW AxisType = 0
	AxisType_COL AxisType = 1
)

func (AxisType) EnumDescriptor

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

func (AxisType) String

func (x AxisType) String() string

type Row

type Row struct {
	SharesHalf []*Share     `protobuf:"bytes,1,rep,name=shares_half,json=sharesHalf,proto3" json:"shares_half,omitempty"`
	HalfSide   Row_HalfSide `protobuf:"varint,2,opt,name=half_side,json=halfSide,proto3,enum=shwap.Row_HalfSide" json:"half_side,omitempty"`
}

func (*Row) Descriptor

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

func (*Row) GetHalfSide

func (m *Row) GetHalfSide() Row_HalfSide

func (*Row) GetSharesHalf

func (m *Row) GetSharesHalf() []*Share

func (*Row) Marshal

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

func (*Row) MarshalTo

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

func (*Row) MarshalToSizedBuffer

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

func (*Row) ProtoMessage

func (*Row) ProtoMessage()

func (*Row) Reset

func (m *Row) Reset()

func (*Row) Size

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

func (*Row) String

func (m *Row) String() string

func (*Row) Unmarshal

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

func (*Row) XXX_DiscardUnknown

func (m *Row) XXX_DiscardUnknown()

func (*Row) XXX_Marshal

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

func (*Row) XXX_Merge

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

func (*Row) XXX_Size

func (m *Row) XXX_Size() int

func (*Row) XXX_Unmarshal

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

type RowNamespaceData

type RowNamespaceData struct {
	Shares []*Share  `protobuf:"bytes,1,rep,name=shares,proto3" json:"shares,omitempty"`
	Proof  *pb.Proof `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"`
}

func (*RowNamespaceData) Descriptor

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

func (*RowNamespaceData) GetProof

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

func (*RowNamespaceData) GetShares

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

func (*RowNamespaceData) Marshal

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

func (*RowNamespaceData) MarshalTo

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

func (*RowNamespaceData) MarshalToSizedBuffer

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

func (*RowNamespaceData) ProtoMessage

func (*RowNamespaceData) ProtoMessage()

func (*RowNamespaceData) Reset

func (m *RowNamespaceData) Reset()

func (*RowNamespaceData) Size

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

func (*RowNamespaceData) String

func (m *RowNamespaceData) String() string

func (*RowNamespaceData) Unmarshal

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

func (*RowNamespaceData) XXX_DiscardUnknown

func (m *RowNamespaceData) XXX_DiscardUnknown()

func (*RowNamespaceData) XXX_Marshal

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

func (*RowNamespaceData) XXX_Merge

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

func (*RowNamespaceData) XXX_Size

func (m *RowNamespaceData) XXX_Size() int

func (*RowNamespaceData) XXX_Unmarshal

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

type Row_HalfSide

type Row_HalfSide int32
const (
	Row_LEFT  Row_HalfSide = 0
	Row_RIGHT Row_HalfSide = 1
)

func (Row_HalfSide) EnumDescriptor

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

func (Row_HalfSide) String

func (x Row_HalfSide) String() string

type Sample

type Sample struct {
	Share     *Share    `protobuf:"bytes,1,opt,name=share,proto3" json:"share,omitempty"`
	Proof     *pb.Proof `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"`
	ProofType AxisType  `protobuf:"varint,3,opt,name=proof_type,json=proofType,proto3,enum=shwap.AxisType" json:"proof_type,omitempty"`
}

func (*Sample) Descriptor

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

func (*Sample) GetProof

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

func (*Sample) GetProofType

func (m *Sample) GetProofType() AxisType

func (*Sample) GetShare

func (m *Sample) GetShare() *Share

func (*Sample) Marshal

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

func (*Sample) MarshalTo

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

func (*Sample) MarshalToSizedBuffer

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

func (*Sample) ProtoMessage

func (*Sample) ProtoMessage()

func (*Sample) Reset

func (m *Sample) Reset()

func (*Sample) Size

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

func (*Sample) String

func (m *Sample) String() string

func (*Sample) Unmarshal

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

func (*Sample) XXX_DiscardUnknown

func (m *Sample) XXX_DiscardUnknown()

func (*Sample) XXX_Marshal

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

func (*Sample) XXX_Merge

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

func (*Sample) XXX_Size

func (m *Sample) XXX_Size() int

func (*Sample) XXX_Unmarshal

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

type Share

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

func (*Share) Descriptor

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

func (*Share) GetData

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

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