keygen

package
v0.0.0-...-289439a Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 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) *MoneroKeyGen

func (*MoneroKeyGen) GenerateNewKey

func (tKeyGen *MoneroKeyGen) GenerateNewKey(keygenReq Request) (string, 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"`
	RpcAddress   string   `json:"rpc_address"`
	BlockHeight  int64    `json:"block_height"`
	KeygenHeight string   `json:"keygen_height"`
	Version      string   `json:"tss_version"`
}

Request request to do keygen

func NewRequest

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

NewRequest creeate a new instance of keygen.Request

type Response

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

Response keygen response

func NewResponse

func NewResponse(addr, viewKey string, status common.Status, blame blame.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