Documentation ¶
Index ¶
- Constants
- Variables
- func NewLocalParty(msg *big.Int, params *tss.Parameters, key keygen.LocalPartySaveData, ...) tss.Party
- func NewSignRound1Message(from *tss.PartyID, commitment cmt.HashCommitment) tss.ParsedMessage
- func NewSignRound2Message(from *tss.PartyID, deCommitment cmt.HashDeCommitment, proof *schnorr.ZKProof) tss.ParsedMessage
- func NewSignRound3Message(from *tss.PartyID, si *big.Int) tss.ParsedMessage
- func PrepareForSigning(ec elliptic.Curve, i, pax int, xi *big.Int, ks []*big.Int) (wi *big.Int)
- type LocalParty
- func (p *LocalParty) FirstRound() tss.Round
- func (p *LocalParty) PartyID() *tss.PartyID
- func (p *LocalParty) Start() *tss.Error
- func (p *LocalParty) StoreMessage(msg tss.ParsedMessage) (bool, *tss.Error)
- func (p *LocalParty) String() string
- func (p *LocalParty) Update(msg tss.ParsedMessage) (ok bool, err *tss.Error)
- func (p *LocalParty) UpdateFromBytes(wireBytes []byte, from *tss.PartyID, isBroadcast bool) (bool, *tss.Error)
- func (p *LocalParty) ValidateMessage(msg tss.ParsedMessage) (bool, *tss.Error)
- type SignRound1Message
- func (*SignRound1Message) Descriptor() ([]byte, []int)deprecated
- func (x *SignRound1Message) GetCommitment() []byte
- func (*SignRound1Message) ProtoMessage()
- func (x *SignRound1Message) ProtoReflect() protoreflect.Message
- func (x *SignRound1Message) Reset()
- func (x *SignRound1Message) String() string
- func (m *SignRound1Message) UnmarshalCommitment() *big.Int
- func (m *SignRound1Message) ValidateBasic() bool
- type SignRound2Message
- func (*SignRound2Message) Descriptor() ([]byte, []int)deprecated
- func (x *SignRound2Message) GetDeCommitment() [][]byte
- func (x *SignRound2Message) GetProofAlphaX() []byte
- func (x *SignRound2Message) GetProofAlphaY() []byte
- func (x *SignRound2Message) GetProofT() []byte
- func (*SignRound2Message) ProtoMessage()
- func (x *SignRound2Message) ProtoReflect() protoreflect.Message
- func (x *SignRound2Message) Reset()
- func (x *SignRound2Message) String() string
- func (m *SignRound2Message) UnmarshalDeCommitment() []*big.Int
- func (m *SignRound2Message) UnmarshalZKProof(ec elliptic.Curve) (*schnorr.ZKProof, error)
- func (m *SignRound2Message) ValidateBasic() bool
- type SignRound3Message
- func (*SignRound3Message) Descriptor() ([]byte, []int)deprecated
- func (x *SignRound3Message) GetS() []byte
- func (*SignRound3Message) ProtoMessage()
- func (x *SignRound3Message) ProtoReflect() protoreflect.Message
- func (x *SignRound3Message) Reset()
- func (x *SignRound3Message) String() string
- func (m *SignRound3Message) UnmarshalS() *big.Int
- func (m *SignRound3Message) ValidateBasic() bool
Constants ¶
View Source
const (
TaskName = "eddsa-signing"
)
Variables ¶
View Source
var File_protob_eddsa_signing_proto protoreflect.FileDescriptor
Functions ¶
func NewLocalParty ¶
func NewLocalParty( msg *big.Int, params *tss.Parameters, key keygen.LocalPartySaveData, out chan<- tss.Message, end chan<- common.SignatureData, ) tss.Party
func NewSignRound1Message ¶
func NewSignRound1Message( from *tss.PartyID, commitment cmt.HashCommitment, ) tss.ParsedMessage
func NewSignRound2Message ¶
func NewSignRound2Message( from *tss.PartyID, deCommitment cmt.HashDeCommitment, proof *schnorr.ZKProof, ) tss.ParsedMessage
func NewSignRound3Message ¶
Types ¶
type LocalParty ¶
func (*LocalParty) FirstRound ¶
func (p *LocalParty) FirstRound() tss.Round
func (*LocalParty) PartyID ¶
func (p *LocalParty) PartyID() *tss.PartyID
func (*LocalParty) Start ¶
func (p *LocalParty) Start() *tss.Error
func (*LocalParty) StoreMessage ¶
func (p *LocalParty) StoreMessage(msg tss.ParsedMessage) (bool, *tss.Error)
func (*LocalParty) String ¶
func (p *LocalParty) String() string
func (*LocalParty) Update ¶
func (p *LocalParty) Update(msg tss.ParsedMessage) (ok bool, err *tss.Error)
func (*LocalParty) UpdateFromBytes ¶
func (*LocalParty) ValidateMessage ¶
func (p *LocalParty) ValidateMessage(msg tss.ParsedMessage) (bool, *tss.Error)
type SignRound1Message ¶
type SignRound1Message struct { Commitment []byte `protobuf:"bytes,1,opt,name=commitment,proto3" json:"commitment,omitempty"` // contains filtered or unexported fields }
Represents a BROADCAST message sent to all parties during Round 1 of the EDDSA TSS signing protocol.
func (*SignRound1Message) Descriptor
deprecated
func (*SignRound1Message) Descriptor() ([]byte, []int)
Deprecated: Use SignRound1Message.ProtoReflect.Descriptor instead.
func (*SignRound1Message) GetCommitment ¶
func (x *SignRound1Message) GetCommitment() []byte
func (*SignRound1Message) ProtoMessage ¶
func (*SignRound1Message) ProtoMessage()
func (*SignRound1Message) ProtoReflect ¶
func (x *SignRound1Message) ProtoReflect() protoreflect.Message
func (*SignRound1Message) Reset ¶
func (x *SignRound1Message) Reset()
func (*SignRound1Message) String ¶
func (x *SignRound1Message) String() string
func (*SignRound1Message) UnmarshalCommitment ¶
func (m *SignRound1Message) UnmarshalCommitment() *big.Int
func (*SignRound1Message) ValidateBasic ¶
func (m *SignRound1Message) ValidateBasic() bool
type SignRound2Message ¶
type SignRound2Message struct { DeCommitment [][]byte `protobuf:"bytes,1,rep,name=de_commitment,json=deCommitment,proto3" json:"de_commitment,omitempty"` ProofAlphaX []byte `protobuf:"bytes,2,opt,name=proof_alpha_x,json=proofAlphaX,proto3" json:"proof_alpha_x,omitempty"` ProofAlphaY []byte `protobuf:"bytes,3,opt,name=proof_alpha_y,json=proofAlphaY,proto3" json:"proof_alpha_y,omitempty"` ProofT []byte `protobuf:"bytes,4,opt,name=proof_t,json=proofT,proto3" json:"proof_t,omitempty"` // contains filtered or unexported fields }
Represents a BROADCAST message sent to all parties during Round 2 of the EDDSA TSS signing protocol.
func (*SignRound2Message) Descriptor
deprecated
func (*SignRound2Message) Descriptor() ([]byte, []int)
Deprecated: Use SignRound2Message.ProtoReflect.Descriptor instead.
func (*SignRound2Message) GetDeCommitment ¶
func (x *SignRound2Message) GetDeCommitment() [][]byte
func (*SignRound2Message) GetProofAlphaX ¶
func (x *SignRound2Message) GetProofAlphaX() []byte
func (*SignRound2Message) GetProofAlphaY ¶
func (x *SignRound2Message) GetProofAlphaY() []byte
func (*SignRound2Message) GetProofT ¶
func (x *SignRound2Message) GetProofT() []byte
func (*SignRound2Message) ProtoMessage ¶
func (*SignRound2Message) ProtoMessage()
func (*SignRound2Message) ProtoReflect ¶
func (x *SignRound2Message) ProtoReflect() protoreflect.Message
func (*SignRound2Message) Reset ¶
func (x *SignRound2Message) Reset()
func (*SignRound2Message) String ¶
func (x *SignRound2Message) String() string
func (*SignRound2Message) UnmarshalDeCommitment ¶
func (m *SignRound2Message) UnmarshalDeCommitment() []*big.Int
func (*SignRound2Message) UnmarshalZKProof ¶
func (*SignRound2Message) ValidateBasic ¶
func (m *SignRound2Message) ValidateBasic() bool
type SignRound3Message ¶
type SignRound3Message struct { S []byte `protobuf:"bytes,1,opt,name=s,proto3" json:"s,omitempty"` // contains filtered or unexported fields }
Represents a BROADCAST message sent to all parties during Round 3 of the EDDSA TSS signing protocol.
func (*SignRound3Message) Descriptor
deprecated
func (*SignRound3Message) Descriptor() ([]byte, []int)
Deprecated: Use SignRound3Message.ProtoReflect.Descriptor instead.
func (*SignRound3Message) GetS ¶
func (x *SignRound3Message) GetS() []byte
func (*SignRound3Message) ProtoMessage ¶
func (*SignRound3Message) ProtoMessage()
func (*SignRound3Message) ProtoReflect ¶
func (x *SignRound3Message) ProtoReflect() protoreflect.Message
func (*SignRound3Message) Reset ¶
func (x *SignRound3Message) Reset()
func (*SignRound3Message) String ¶
func (x *SignRound3Message) String() string
func (*SignRound3Message) UnmarshalS ¶
func (m *SignRound3Message) UnmarshalS() *big.Int
func (*SignRound3Message) ValidateBasic ¶
func (m *SignRound3Message) ValidateBasic() bool
Click to show internal directories.
Click to hide internal directories.