keygen

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 {
	Keys      []string `json:"keys"`
	ThresHold int      `json:"thres_hold"`
}

func NewRequest

func NewRequest(keys []string, threshold int) Request

type Response

type Response struct {
	PubKey          string        `json:"pubKey"`
	Address         []byte        `json:"address"`
	PubKeyByte      []byte        `json:"pubKey_byte"`
	Status          common.Status `json:"status"`
	FailReason      string        `json:"fail_reason"`
	AbnormalPubKeys []string      `json:"abnormal_pub_keys"`
}

func NewResponse

func NewResponse(pubkey string, address, pubkeyByte []byte, status common.Status, failReason string, abnormalPubkeys []string) Response

type TssKeyGen

type TssKeyGen struct {
	ParticipantKeys []string
	// contains filtered or unexported fields
}

func NewTssKeyGen

func NewTssKeyGen(localP2PID string,
	conf common2.TssConfig,
	localNodePubKey string,
	broadcastChan chan *messages.BroadcastMsgChan,
	stopChan chan struct{},
	preParam *keygen.LocalPreParams,
	msgID string,
	stateManager storage2.LocalStateManager,
	secretsEnable bool,
	secretsManager storage2.SecretsManager,
	shamirEnable bool,
	shamirManager storage2.ShamirManager,
	privateKey *ecdsa.PrivateKey,
	p2pComm *p2p.Communication,
	thresHold int) *TssKeyGen

func (*TssKeyGen) GenerateNewKey

func (tKeyGen *TssKeyGen) GenerateNewKey(keygenReq Request) (*bcrypto.ECPoint, error)

func (*TssKeyGen) GetTssCommonStruct

func (tKeyGen *TssKeyGen) GetTssCommonStruct() *common2.TssCommon

func (*TssKeyGen) GetTssKeyGenChannels

func (tKeyGen *TssKeyGen) GetTssKeyGenChannels() chan *p2p.Message

Jump to

Keyboard shortcuts

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