reshare

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Type_name = map[int32]string{
		0: "Commit",
		1: "Verify",
		2: "Result",
	}
	Type_value = map[string]int32{
		"Commit": 0,
		"Verify": 1,
		"Result": 2,
	}
)

Enum value maps for Type.

View Source
var File_github_com_getamis_alice_crypto_tss_ecdsa_gg18_reshare_message_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BodyCommit

type BodyCommit struct {
	PointCommitment *commitment.PointCommitmentMessage `protobuf:"bytes,1,opt,name=pointCommitment,proto3" json:"pointCommitment,omitempty"`
	// contains filtered or unexported fields
}

func (*BodyCommit) Descriptor deprecated

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

Deprecated: Use BodyCommit.ProtoReflect.Descriptor instead.

func (*BodyCommit) GetPointCommitment

func (x *BodyCommit) GetPointCommitment() *commitment.PointCommitmentMessage

func (*BodyCommit) ProtoMessage

func (*BodyCommit) ProtoMessage()

func (*BodyCommit) ProtoReflect

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

func (*BodyCommit) Reset

func (x *BodyCommit) Reset()

func (*BodyCommit) String

func (x *BodyCommit) String() string

type BodyResult

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

func (*BodyResult) Descriptor deprecated

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

Deprecated: Use BodyResult.ProtoReflect.Descriptor instead.

func (*BodyResult) GetSiGProofMsg

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

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 {
	Verify *commitment.FeldmanVerifyMessage `protobuf:"bytes,1,opt,name=verify,proto3" json:"verify,omitempty"`
	// contains filtered or unexported fields
}

func (*BodyVerify) Descriptor deprecated

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

Deprecated: Use BodyVerify.ProtoReflect.Descriptor instead.

func (*BodyVerify) GetVerify

func (x *BodyVerify) GetVerify() *commitment.FeldmanVerifyMessage

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.reshare.Type" json:"type,omitempty"`
	Id   string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// Types that are assignable to Body:
	//	*Message_Commit
	//	*Message_Verify
	//	*Message_Result
	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) GetCommit

func (x *Message) GetCommit() *BodyCommit

func (*Message) GetId

func (x *Message) GetId() string

func (*Message) GetMessageType

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

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_Commit

type Message_Commit struct {
	Commit *BodyCommit `protobuf:"bytes,3,opt,name=commit,proto3,oneof"`
}

type Message_Result

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

type Message_Verify

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

type Reshare

type Reshare struct {
	*message.MsgMain
	// contains filtered or unexported fields
}

func NewReshare

func NewReshare(peerManager types.PeerManager, threshold uint32, publicKey *ecpointgrouplaw.ECPoint, oldShare *big.Int, bks map[string]*birkhoffinterpolation.BkParameter, listener types.StateChangedListener) (*Reshare, error)

func (*Reshare) GetResult

func (d *Reshare) GetResult() (*Result, error)

GetResult returns the final result: new share

func (*Reshare) Start

func (d *Reshare) Start()

type Result

type Result struct {
	Share *big.Int
}

type Type

type Type int32
const (
	Type_Commit Type = 0
	Type_Verify Type = 1
	Type_Result Type = 2
)

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

Jump to

Keyboard shortcuts

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