keysign

package
v0.0.0-...-5cda5f8 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MIT, MIT Imports: 17 Imported by: 0

Documentation

Index

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"`
	Message       []byte   `json:"message"`
	SignerPubKeys []string `json:"signer_pub_keys"`
}

func NewRequest

func NewRequest(pk string, msg []byte, signers []string) Request

type Response

type Response struct {
	SignatureData *common2.SignatureData `json:"signature_data"`
	Status        common.Status          `json:"status"`
	FailReason    string                 `json:"failReason"`
	Culprits      []string               `json:"culprits"`
}

func NewResponse

func NewResponse(signature *common2.SignatureData, status common.Status, failReason string, culprits []string) Response

type TssKeySign

type TssKeySign struct {
	// contains filtered or unexported fields
}

func NewTssKeySign

func NewTssKeySign(localP2PID string,
	conf common2.TssConfig,
	broadcastChan chan *messages.BroadcastMsgChan,
	stopChan chan struct{},
	msgID string,
	privKey *ecdsa.PrivateKey,
	p2pComm *p2p.Communication,
	stateManager storage.LocalStateManager,
	thresHold int) *TssKeySign

func (*TssKeySign) GetTssCommonStruct

func (tKeySign *TssKeySign) GetTssCommonStruct() *common2.TssCommon

func (*TssKeySign) GetTssKeySignChannels

func (tKeySign *TssKeySign) GetTssKeySignChannels() chan *p2p.Message

func (*TssKeySign) SignMessage

func (tKeySign *TssKeySign) SignMessage(msgToSign []byte, localStateItem storage.KeygenLocalState, parties []string) (*tsscommon.SignatureData, error)

signMessage

Jump to

Keyboard shortcuts

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