Documentation ¶
Index ¶
- Constants
- Variables
- func NewEDKGRound1Message(from *tss.PartyID, ct cmt.HashCommitment) tss.ParsedMessage
- func NewEDKGRound2Message1(to, from *tss.PartyID, share *vss.Share) tss.ParsedMessage
- func NewEDKGRound2Message2(from *tss.PartyID, deCommitment cmt.HashDeCommitment, proof *zkp.DLogProof) tss.ParsedMessage
- func NewLocalParty(params *tss.Parameters, out chan<- tss.Message, end chan<- LocalPartySaveData) tss.Party
- type EDKGRound1Message
- func (*EDKGRound1Message) Descriptor() ([]byte, []int)deprecated
- func (x *EDKGRound1Message) GetCommitment() []byte
- func (*EDKGRound1Message) ProtoMessage()
- func (x *EDKGRound1Message) ProtoReflect() protoreflect.Message
- func (x *EDKGRound1Message) Reset()
- func (x *EDKGRound1Message) String() string
- func (m *EDKGRound1Message) UnmarshalCommitment() *big.Int
- func (m *EDKGRound1Message) ValidateBasic() bool
- type EDKGRound2Message1
- func (*EDKGRound2Message1) Descriptor() ([]byte, []int)deprecated
- func (x *EDKGRound2Message1) GetShare() []byte
- func (*EDKGRound2Message1) ProtoMessage()
- func (x *EDKGRound2Message1) ProtoReflect() protoreflect.Message
- func (x *EDKGRound2Message1) Reset()
- func (x *EDKGRound2Message1) String() string
- func (m *EDKGRound2Message1) UnmarshalShare() *big.Int
- func (m *EDKGRound2Message1) ValidateBasic() bool
- type EDKGRound2Message2
- func (*EDKGRound2Message2) Descriptor() ([]byte, []int)deprecated
- func (x *EDKGRound2Message2) GetDeCommitment() [][]byte
- func (x *EDKGRound2Message2) GetProofAlpha() *common.ECPoint
- func (x *EDKGRound2Message2) GetProofT() []byte
- func (*EDKGRound2Message2) ProtoMessage()
- func (x *EDKGRound2Message2) ProtoReflect() protoreflect.Message
- func (x *EDKGRound2Message2) Reset()
- func (x *EDKGRound2Message2) String() string
- func (m *EDKGRound2Message2) UnmarshalDeCommitment() []*big.Int
- func (m *EDKGRound2Message2) UnmarshalZKProof() (*zkp.DLogProof, error)
- func (m *EDKGRound2Message2) ValidateBasic() bool
- 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 LocalPartySaveData
- func BuildLocalSaveDataSubset(sourceData LocalPartySaveData, sortedIDs tss.SortedPartyIDs) LocalPartySaveData
- func LoadKeygenTestFixtures(qty int, optionalStart ...int) ([]LocalPartySaveData, tss.SortedPartyIDs, error)
- func LoadKeygenTestFixturesRandomSet(qty, fixtureCount int) ([]LocalPartySaveData, tss.SortedPartyIDs, error)
- func NewLocalPartySaveData(partyCount int) (saveData LocalPartySaveData)
- type LocalSecrets
Constants ¶
const ( // To change these parameters, you must first delete the text fixture files in test/_fixtures/ and then run the keygen test alone. // Then the signing and resharing tests will work with the new n, t configuration using the newly written fixture files. TestParticipants = test.TestParticipants TestThreshold = test.TestParticipants / 2 )
const (
TaskName = "eddsa-keygen"
)
Variables ¶
var File_protob_eddsa_keygen_proto protoreflect.FileDescriptor
Functions ¶
func NewEDKGRound1Message ¶
func NewEDKGRound1Message(from *tss.PartyID, ct cmt.HashCommitment) tss.ParsedMessage
func NewEDKGRound2Message1 ¶
func NewEDKGRound2Message2 ¶
func NewEDKGRound2Message2( from *tss.PartyID, deCommitment cmt.HashDeCommitment, proof *zkp.DLogProof, ) tss.ParsedMessage
func NewLocalParty ¶
func NewLocalParty( params *tss.Parameters, out chan<- tss.Message, end chan<- LocalPartySaveData, ) tss.Party
Exported, used in `tss` client
Types ¶
type EDKGRound1Message ¶
type EDKGRound1Message struct { Commitment []byte `protobuf:"bytes,1,opt,name=commitment,proto3" json:"commitment,omitempty"` // contains filtered or unexported fields }
Represents a BROADCAST message sent during Round 1 of the EDDSA TSS keygen protocol.
func (*EDKGRound1Message) Descriptor
deprecated
func (*EDKGRound1Message) Descriptor() ([]byte, []int)
Deprecated: Use EDKGRound1Message.ProtoReflect.Descriptor instead.
func (*EDKGRound1Message) GetCommitment ¶
func (x *EDKGRound1Message) GetCommitment() []byte
func (*EDKGRound1Message) ProtoMessage ¶
func (*EDKGRound1Message) ProtoMessage()
func (*EDKGRound1Message) ProtoReflect ¶
func (x *EDKGRound1Message) ProtoReflect() protoreflect.Message
func (*EDKGRound1Message) Reset ¶
func (x *EDKGRound1Message) Reset()
func (*EDKGRound1Message) String ¶
func (x *EDKGRound1Message) String() string
func (*EDKGRound1Message) UnmarshalCommitment ¶
func (m *EDKGRound1Message) UnmarshalCommitment() *big.Int
func (*EDKGRound1Message) ValidateBasic ¶
func (m *EDKGRound1Message) ValidateBasic() bool
type EDKGRound2Message1 ¶
type EDKGRound2Message1 struct { // contains filtered or unexported fields }
Represents a P2P message sent to each party during Round 2 of the EDDSA TSS keygen protocol.
func (*EDKGRound2Message1) Descriptor
deprecated
func (*EDKGRound2Message1) Descriptor() ([]byte, []int)
Deprecated: Use EDKGRound2Message1.ProtoReflect.Descriptor instead.
func (*EDKGRound2Message1) GetShare ¶
func (x *EDKGRound2Message1) GetShare() []byte
func (*EDKGRound2Message1) ProtoMessage ¶
func (*EDKGRound2Message1) ProtoMessage()
func (*EDKGRound2Message1) ProtoReflect ¶
func (x *EDKGRound2Message1) ProtoReflect() protoreflect.Message
func (*EDKGRound2Message1) Reset ¶
func (x *EDKGRound2Message1) Reset()
func (*EDKGRound2Message1) String ¶
func (x *EDKGRound2Message1) String() string
func (*EDKGRound2Message1) UnmarshalShare ¶
func (m *EDKGRound2Message1) UnmarshalShare() *big.Int
func (*EDKGRound2Message1) ValidateBasic ¶
func (m *EDKGRound2Message1) ValidateBasic() bool
type EDKGRound2Message2 ¶
type EDKGRound2Message2 struct { DeCommitment [][]byte `protobuf:"bytes,1,rep,name=de_commitment,json=deCommitment,proto3" json:"de_commitment,omitempty"` ProofAlpha *common.ECPoint `protobuf:"bytes,2,opt,name=proof_alpha,json=proofAlpha,proto3" json:"proof_alpha,omitempty"` ProofT []byte `protobuf:"bytes,3,opt,name=proof_t,json=proofT,proto3" json:"proof_t,omitempty"` // contains filtered or unexported fields }
Represents a BROADCAST message sent to each party during Round 2 of the EDDSA TSS keygen protocol.
func (*EDKGRound2Message2) Descriptor
deprecated
func (*EDKGRound2Message2) Descriptor() ([]byte, []int)
Deprecated: Use EDKGRound2Message2.ProtoReflect.Descriptor instead.
func (*EDKGRound2Message2) GetDeCommitment ¶
func (x *EDKGRound2Message2) GetDeCommitment() [][]byte
func (*EDKGRound2Message2) GetProofAlpha ¶
func (x *EDKGRound2Message2) GetProofAlpha() *common.ECPoint
func (*EDKGRound2Message2) GetProofT ¶
func (x *EDKGRound2Message2) GetProofT() []byte
func (*EDKGRound2Message2) ProtoMessage ¶
func (*EDKGRound2Message2) ProtoMessage()
func (*EDKGRound2Message2) ProtoReflect ¶
func (x *EDKGRound2Message2) ProtoReflect() protoreflect.Message
func (*EDKGRound2Message2) Reset ¶
func (x *EDKGRound2Message2) Reset()
func (*EDKGRound2Message2) String ¶
func (x *EDKGRound2Message2) String() string
func (*EDKGRound2Message2) UnmarshalDeCommitment ¶
func (m *EDKGRound2Message2) UnmarshalDeCommitment() []*big.Int
func (*EDKGRound2Message2) UnmarshalZKProof ¶
func (m *EDKGRound2Message2) UnmarshalZKProof() (*zkp.DLogProof, error)
func (*EDKGRound2Message2) ValidateBasic ¶
func (m *EDKGRound2Message2) ValidateBasic() bool
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 LocalPartySaveData ¶
type LocalPartySaveData struct { LocalSecrets // original indexes (ki in signing preparation phase) Ks []*big.Int // public keys (Xj = uj*G for each Pj) BigXj []*crypto.ECPoint // Xj // the EdDSA public key EDDSAPub *crypto.ECPoint // y }
Everything in LocalPartySaveData is saved locally to user's HD when done
func BuildLocalSaveDataSubset ¶
func BuildLocalSaveDataSubset(sourceData LocalPartySaveData, sortedIDs tss.SortedPartyIDs) LocalPartySaveData
BuildLocalSaveDataSubset re-creates the LocalPartySaveData to contain data for only the list of signing parties.
func LoadKeygenTestFixtures ¶
func LoadKeygenTestFixtures(qty int, optionalStart ...int) ([]LocalPartySaveData, tss.SortedPartyIDs, error)
func LoadKeygenTestFixturesRandomSet ¶
func LoadKeygenTestFixturesRandomSet(qty, fixtureCount int) ([]LocalPartySaveData, tss.SortedPartyIDs, error)
func NewLocalPartySaveData ¶
func NewLocalPartySaveData(partyCount int) (saveData LocalPartySaveData)
func (LocalPartySaveData) OriginalIndex ¶
func (save LocalPartySaveData) OriginalIndex() (int, error)
recovers a party's original index in the set of parties during keygen