sign

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var ProofParameter = crypto.NewProofConfig(edwards.Edwards().N)

Functions

func NewLocalParty

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

func NewSignRound1Message1

func NewSignRound1Message1(
	from *tss.PartyID,
	kCiphertext *big.Int,
) tss.ParsedMessage

func NewSignRound1Message2

func NewSignRound1Message2(
	to, from *tss.PartyID,
	encProof []byte,
) tss.ParsedMessage

func NewSignRound2Message

func NewSignRound2Message(
	to, from *tss.PartyID,
	R *crypto.ECPoint,
	logProof []byte,
) tss.ParsedMessage

func NewSignRound3Message

func NewSignRound3Message(
	from *tss.PartyID,
	si *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 SignRound1Message1

type SignRound1Message1 struct {
	BigK []byte `protobuf:"bytes,1,opt,name=big_k,json=bigK,proto3" json:"big_k,omitempty"`
	// contains filtered or unexported fields
}

Represents a BROADCAST message sent to all parties during Round 1 of the EDDSA TSS signing protocol.

func (*SignRound1Message1) Descriptor deprecated

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

Deprecated: Use SignRound1Message1.ProtoReflect.Descriptor instead.

func (*SignRound1Message1) GetBigK

func (x *SignRound1Message1) GetBigK() []byte

func (*SignRound1Message1) ProtoMessage

func (*SignRound1Message1) ProtoMessage()

func (*SignRound1Message1) ProtoReflect

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

func (*SignRound1Message1) Reset

func (x *SignRound1Message1) Reset()

func (*SignRound1Message1) String

func (x *SignRound1Message1) String() string

func (*SignRound1Message1) UnmarshalK

func (m *SignRound1Message1) UnmarshalK() *big.Int

func (*SignRound1Message1) ValidateBasic

func (m *SignRound1Message1) ValidateBasic() bool

type SignRound1Message2

type SignRound1Message2 struct {
	EncProof []byte `protobuf:"bytes,1,opt,name=enc_proof,json=encProof,proto3" json:"enc_proof,omitempty"`
	// contains filtered or unexported fields
}

Represents a P2P message sent to all parties during Round 1 of the EDDSA TSS signing protocol.

func (*SignRound1Message2) Descriptor deprecated

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

Deprecated: Use SignRound1Message2.ProtoReflect.Descriptor instead.

func (*SignRound1Message2) GetEncProof

func (x *SignRound1Message2) GetEncProof() []byte

func (*SignRound1Message2) ProtoMessage

func (*SignRound1Message2) ProtoMessage()

func (*SignRound1Message2) ProtoReflect

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

func (*SignRound1Message2) Reset

func (x *SignRound1Message2) Reset()

func (*SignRound1Message2) String

func (x *SignRound1Message2) String() string

func (*SignRound1Message2) UnmarshalEncProof

func (m *SignRound1Message2) UnmarshalEncProof() (*encproof.EncryptRangeMessage, error)

func (*SignRound1Message2) ValidateBasic

func (m *SignRound1Message2) ValidateBasic() bool

type SignRound2Message

type SignRound2Message struct {
	RX       []byte `protobuf:"bytes,1,opt,name=r_x,json=rX,proto3" json:"r_x,omitempty"`
	RY       []byte `protobuf:"bytes,2,opt,name=r_y,json=rY,proto3" json:"r_y,omitempty"`
	LogProof []byte `protobuf:"bytes,3,opt,name=log_proof,json=logProof,proto3" json:"log_proof,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) GetLogProof

func (x *SignRound2Message) GetLogProof() []byte

func (*SignRound2Message) GetRX

func (x *SignRound2Message) GetRX() []byte

func (*SignRound2Message) GetRY

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

func (m *SignRound2Message) UnmarshalLogProof(ec elliptic.Curve) (*logproof.LogStarMessage, error)

func (*SignRound2Message) UnmarshalR

func (m *SignRound2Message) UnmarshalR(ec elliptic.Curve) (*crypto.ECPoint, error)

func (*SignRound2Message) ValidateBasic

func (m *SignRound2Message) ValidateBasic() bool

type SignRound3Message

type SignRound3Message struct {
	Sigma []byte `protobuf:"bytes,1,opt,name=sigma,proto3" json:"sigma,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) GetSigma

func (x *SignRound3Message) GetSigma() []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

Jump to

Keyboard shortcuts

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