Documentation
¶
Index ¶
- type Request
- type Response
- type Signature
- type SignatureNotifier
- func (s *SignatureNotifier) BroadcastFailed(messageID string, peers []peer.ID) error
- func (s *SignatureNotifier) BroadcastSignature(messageID string, sig []*common.SignatureData, peers []peer.ID) error
- func (s *SignatureNotifier) Start()
- func (s *SignatureNotifier) Stop()
- func (s *SignatureNotifier) WaitForSignature(messageID string, message [][]byte, poolPubKey string, timeout time.Duration, ...) ([]*common.SignatureData, error)
- type TssKeySign
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct { PoolPubKey string `json:"pool_pub_key"` // pub key of the pool that we would like to send this message from Messages []string `json:"messages"` // base64 encoded message to be signed SignerPubKeys []string `json:"signer_pub_keys"` BlockHeight int64 `json:"block_height"` Version string `json:"tss_version"` // contains filtered or unexported fields }
Request request to sign a message
func NewRequest ¶
func (*Request) MarshalZerologObject ¶ added in v0.3.0
func (*Request) SetLogFields ¶ added in v0.3.0
type Response ¶
type Response struct { Signatures []Signature `json:"signatures"` Status common.Status `json:"status"` Blame blame.Blame `json:"blame"` }
Response key sign response
type Signature ¶
type Signature struct { Msg string `json:"signed_msg"` R string `json:"r"` S string `json:"s"` RecoveryID string `json:"recovery_id"` }
signature
func NewSignature ¶
type SignatureNotifier ¶
type SignatureNotifier struct {
// contains filtered or unexported fields
}
SignatureNotifier is design to notify the
func NewSignatureNotifier ¶
func NewSignatureNotifier(host host.Host, logger zerolog.Logger) *SignatureNotifier
NewSignatureNotifier create a new instance of SignatureNotifier
func (*SignatureNotifier) BroadcastFailed ¶
func (s *SignatureNotifier) BroadcastFailed(messageID string, peers []peer.ID) error
BroadcastFailed will send keysign failed message to the nodes that are not in the keysign party
func (*SignatureNotifier) BroadcastSignature ¶
func (s *SignatureNotifier) BroadcastSignature(messageID string, sig []*common.SignatureData, peers []peer.ID) error
BroadcastSignature sending the keysign signature to all other peers
func (*SignatureNotifier) Start ¶ added in v0.2.0
func (s *SignatureNotifier) Start()
Start launches a background cleanup goroutine
func (*SignatureNotifier) Stop ¶ added in v0.2.0
func (s *SignatureNotifier) Stop()
Stop stops the background cleanup goroutine
func (*SignatureNotifier) WaitForSignature ¶
func (s *SignatureNotifier) WaitForSignature( messageID string, message [][]byte, poolPubKey string, timeout time.Duration, sigChan chan string, ) ([]*common.SignatureData, error)
WaitForSignature wait until keysign finished and signature is available
type TssKeySign ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.