keygen

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MoneroKeyGen

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

func NewMoneroKeyGen

func NewMoneroKeyGen(localP2PID string,
	conf common.TssConfig,
	localNodePubKey string,
	broadcastChan chan *messages.BroadcastMsgChan,
	stopChan chan struct{},
	msgID string,
	stateManager storage.LocalStateManager,
	privateKey tcrypto.PrivKey,
	p2pComm *p2p.Communication,
	walletAccessor monero_multi_sig.WalletAccessor,
	walletRPC string) *MoneroKeyGen

func (*MoneroKeyGen) GenerateNewKey

func (tKeyGen *MoneroKeyGen) GenerateNewKey(keygenReq Request) (string, error)

func (*MoneroKeyGen) GetTssCommonStruct

func (tKeyGen *MoneroKeyGen) GetTssCommonStruct() *common.TssCommon

func (*MoneroKeyGen) GetTssKeyGenChannels

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

type Request

type Request struct {
	Keys          []string `json:"keys"`
	BlockHeight   int64    `json:"block_height"`
	Version       string   `json:"tss_version"`
	WalletAddress string   `json:"wallet_address"` // current asgard wallet address
}

Request request to do keygen

func NewRequest

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

NewRequest create a new instance of keygen.Request

type Response

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

Response keygen response

func NewResponse

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

NewResponse create a new instance of keygen.Response

Jump to

Keyboard shortcuts

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