addshare

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Type_name = map[int32]string{
		0: "OldPeer",
		1: "NewBk",
		2: "Compute",
		3: "Result",
		4: "Verify",
	}
	Type_value = map[string]int32{
		"OldPeer": 0,
		"NewBk":   1,
		"Compute": 2,
		"Result":  3,
		"Verify":  4,
	}
)

Enum value maps for Type.

View Source
var File_github_com_getamis_alice_crypto_tss_ecdsa_gg18_addshare_message_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BodyCompute

type BodyCompute struct {
	Delta       []byte                       `protobuf:"bytes,1,opt,name=delta,proto3" json:"delta,omitempty"`
	SiGProofMsg *zkproof.SchnorrProofMessage `protobuf:"bytes,2,opt,name=siGProofMsg,proto3" json:"siGProofMsg,omitempty"`
	// contains filtered or unexported fields
}

func (*BodyCompute) Descriptor deprecated

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

Deprecated: Use BodyCompute.ProtoReflect.Descriptor instead.

func (*BodyCompute) GetDelta

func (x *BodyCompute) GetDelta() []byte

func (*BodyCompute) GetSiGProofMsg

func (x *BodyCompute) GetSiGProofMsg() *zkproof.SchnorrProofMessage

func (*BodyCompute) ProtoMessage

func (*BodyCompute) ProtoMessage()

func (*BodyCompute) ProtoReflect

func (x *BodyCompute) ProtoReflect() protoreflect.Message

func (*BodyCompute) Reset

func (x *BodyCompute) Reset()

func (*BodyCompute) String

func (x *BodyCompute) String() string

type BodyNewBk

type BodyNewBk struct {
	Bk *birkhoffinterpolation.BkParameterMessage `protobuf:"bytes,1,opt,name=bk,proto3" json:"bk,omitempty"`
	// contains filtered or unexported fields
}

func (*BodyNewBk) Descriptor deprecated

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

Deprecated: Use BodyNewBk.ProtoReflect.Descriptor instead.

func (*BodyNewBk) GetBk

func (*BodyNewBk) ProtoMessage

func (*BodyNewBk) ProtoMessage()

func (*BodyNewBk) ProtoReflect

func (x *BodyNewBk) ProtoReflect() protoreflect.Message

func (*BodyNewBk) Reset

func (x *BodyNewBk) Reset()

func (*BodyNewBk) String

func (x *BodyNewBk) String() string

type BodyOldPeer

type BodyOldPeer struct {
	Bk          *birkhoffinterpolation.BkParameterMessage `protobuf:"bytes,1,opt,name=bk,proto3" json:"bk,omitempty"`
	SiGProofMsg *zkproof.SchnorrProofMessage              `protobuf:"bytes,2,opt,name=siGProofMsg,proto3" json:"siGProofMsg,omitempty"`
	Pubkey      *ecpointgrouplaw.EcPointMessage           `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	Threshold   uint32                                    `protobuf:"varint,4,opt,name=threshold,proto3" json:"threshold,omitempty"`
	// contains filtered or unexported fields
}

func (*BodyOldPeer) Descriptor deprecated

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

Deprecated: Use BodyOldPeer.ProtoReflect.Descriptor instead.

func (*BodyOldPeer) GetBk

func (*BodyOldPeer) GetPubkey

func (x *BodyOldPeer) GetPubkey() *ecpointgrouplaw.EcPointMessage

func (*BodyOldPeer) GetSiGProofMsg

func (x *BodyOldPeer) GetSiGProofMsg() *zkproof.SchnorrProofMessage

func (*BodyOldPeer) GetThreshold

func (x *BodyOldPeer) GetThreshold() uint32

func (*BodyOldPeer) ProtoMessage

func (*BodyOldPeer) ProtoMessage()

func (*BodyOldPeer) ProtoReflect

func (x *BodyOldPeer) ProtoReflect() protoreflect.Message

func (*BodyOldPeer) Reset

func (x *BodyOldPeer) Reset()

func (*BodyOldPeer) String

func (x *BodyOldPeer) String() string

type BodyResult

type BodyResult struct {
	Delta []byte `protobuf:"bytes,1,opt,name=delta,proto3" json:"delta,omitempty"`
	// contains filtered or unexported fields
}

func (*BodyResult) Descriptor deprecated

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

Deprecated: Use BodyResult.ProtoReflect.Descriptor instead.

func (*BodyResult) GetDelta

func (x *BodyResult) GetDelta() []byte

func (*BodyResult) ProtoMessage

func (*BodyResult) ProtoMessage()

func (*BodyResult) ProtoReflect

func (x *BodyResult) ProtoReflect() protoreflect.Message

func (*BodyResult) Reset

func (x *BodyResult) Reset()

func (*BodyResult) String

func (x *BodyResult) String() string

type BodyVerify

type BodyVerify struct {
	SiGProofMsg *zkproof.SchnorrProofMessage `protobuf:"bytes,1,opt,name=siGProofMsg,proto3" json:"siGProofMsg,omitempty"`
	// contains filtered or unexported fields
}

func (*BodyVerify) Descriptor deprecated

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

Deprecated: Use BodyVerify.ProtoReflect.Descriptor instead.

func (*BodyVerify) GetSiGProofMsg

func (x *BodyVerify) GetSiGProofMsg() *zkproof.SchnorrProofMessage

func (*BodyVerify) ProtoMessage

func (*BodyVerify) ProtoMessage()

func (*BodyVerify) ProtoReflect

func (x *BodyVerify) ProtoReflect() protoreflect.Message

func (*BodyVerify) Reset

func (x *BodyVerify) Reset()

func (*BodyVerify) String

func (x *BodyVerify) String() string

type Message

type Message struct {
	Type Type   `protobuf:"varint,1,opt,name=type,proto3,enum=getamis.alice.crypto.tss.ecdsa.gg18.addshare.Type" json:"type,omitempty"`
	Id   string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// Types that are assignable to Body:
	//	*Message_OldPeer
	//	*Message_NewBk
	//	*Message_Compute
	//	*Message_Result
	//	*Message_Verify
	Body isMessage_Body `protobuf_oneof:"body"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetBody

func (m *Message) GetBody() isMessage_Body

func (*Message) GetCompute

func (x *Message) GetCompute() *BodyCompute

func (*Message) GetId

func (x *Message) GetId() string

func (*Message) GetMessageType

func (m *Message) GetMessageType() types.MessageType

func (*Message) GetNewBk

func (x *Message) GetNewBk() *BodyNewBk

func (*Message) GetOldPeer

func (x *Message) GetOldPeer() *BodyOldPeer

func (*Message) GetResult

func (x *Message) GetResult() *BodyResult

func (*Message) GetType

func (x *Message) GetType() Type

func (*Message) GetVerify

func (x *Message) GetVerify() *BodyVerify

func (*Message) IsValid

func (m *Message) IsValid() bool

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

func (x *Message) ProtoReflect() protoreflect.Message

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type Message_Compute

type Message_Compute struct {
	Compute *BodyCompute `protobuf:"bytes,5,opt,name=compute,proto3,oneof"`
}

type Message_NewBk

type Message_NewBk struct {
	NewBk *BodyNewBk `protobuf:"bytes,4,opt,name=new_bk,json=newBk,proto3,oneof"`
}

type Message_OldPeer

type Message_OldPeer struct {
	OldPeer *BodyOldPeer `protobuf:"bytes,3,opt,name=old_peer,json=oldPeer,proto3,oneof"`
}

type Message_Result

type Message_Result struct {
	Result *BodyResult `protobuf:"bytes,6,opt,name=result,proto3,oneof"`
}

type Message_Verify

type Message_Verify struct {
	Verify *BodyVerify `protobuf:"bytes,7,opt,name=verify,proto3,oneof"`
}

type Type

type Type int32
const (
	Type_OldPeer Type = 0
	Type_NewBk   Type = 1
	Type_Compute Type = 2
	Type_Result  Type = 3
	Type_Verify  Type = 4
)

func (Type) Descriptor

func (Type) Descriptor() protoreflect.EnumDescriptor

func (Type) Enum

func (x Type) Enum() *Type

func (Type) EnumDescriptor deprecated

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

Deprecated: Use Type.Descriptor instead.

func (Type) Number

func (x Type) Number() protoreflect.EnumNumber

func (Type) String

func (x Type) String() string

func (Type) Type

func (Type) Type() protoreflect.EnumType

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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