keygen

package
v0.0.0-...-60dff86 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: MIT Imports: 16 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"`
	BlockHeight int64    `json:"block_height"`
	Version     string   `json:"tss_version"`
}

Request request to do keygen

func NewRequest

func NewRequest(keys []string, blockHeight int64, version string) Request

NewRequest creeate a new instance of keygen.Request

type Response

type Response struct {
	PubKey      string        `json:"pub_key"`
	PoolAddress string        `json:"pool_address"`
	Status      common.Status `json:"status"`
	Blame       blame.Blame   `json:"blame"`
}

Response keygen response

func NewResponse

func NewResponse(pk, addr string, status common.Status, blame blame.Blame) Response

NewResponse create a new instance of keygen.Response

type TssKeyGen

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

func NewTssKeyGen

func NewTssKeyGen(localP2PID string,
	conf common.TssConfig,
	localNodePubKey string,
	broadcastChan chan *messages.BroadcastMsgChan,
	stopChan chan struct{},
	preParam *bkg.LocalPreParams,
	msgID string,
	stateManager storage.LocalStateManager,
	privateKey tcrypto.PrivKey,
	p2pComm *p2p.Communication) *TssKeyGen

func (*TssKeyGen) GenerateNewKey

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

func (*TssKeyGen) GetTssCommonStruct

func (tKeyGen *TssKeyGen) GetTssCommonStruct() *common.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