sign

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TaskName = "eddsa-sign"
)

Variables

Functions

func NewLocalParty

func NewLocalParty(
	msg *big.Int,
	isThreshold bool,
	params *tss.Parameters,
	path string,
	key keygen.LocalPartySaveData,
	out chan<- tss.Message,
	end chan<- *common.SignatureData,
	fullBytesLen ...int,
) (tss.Party, error)

func NewSignRound1Message

func NewSignRound1Message(
	from *tss.PartyID,
	D *crypto.ECPoint,
	E *crypto.ECPoint,
) (tss.ParsedMessage, error)

func NewSignRound2Message

func NewSignRound2Message(
	from *tss.PartyID,
	z *big.Int,
) tss.ParsedMessage

Types

type LocalParty

type LocalParty struct {
	*tss.BaseParty
	// contains filtered or unexported fields
}

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 (p *LocalParty) UpdateFromBytes(wireBytes []byte, from *tss.PartyID, isBroadcast bool) (bool, *tss.Error)

func (*LocalParty) ValidateMessage

func (p *LocalParty) ValidateMessage(msg tss.ParsedMessage) (bool, *tss.Error)

type SignRound1Message

type SignRound1Message struct {
	D []byte `protobuf:"bytes,1,opt,name=d,proto3" json:"d,omitempty"`
	E []byte `protobuf:"bytes,2,opt,name=e,proto3" json:"e,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) GetD

func (x *SignRound1Message) GetD() []byte

func (*SignRound1Message) GetE

func (x *SignRound1Message) GetE() []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) UnmarshalD

func (m *SignRound1Message) UnmarshalD() (*crypto.ECPoint, error)

func (*SignRound1Message) UnmarshalE

func (m *SignRound1Message) UnmarshalE() (*crypto.ECPoint, error)

func (*SignRound1Message) ValidateBasic

func (m *SignRound1Message) ValidateBasic() bool

type SignRound2Message

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

Represents a P2P 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) GetSi

func (x *SignRound2Message) GetSi() []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) UnmarshalS

func (m *SignRound2Message) UnmarshalS() *big.Int

func (*SignRound2Message) ValidateBasic

func (m *SignRound2Message) ValidateBasic() bool

Jump to

Keyboard shortcuts

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