keygen

package
v1.28.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	// parties pubkey
	Pubkeys []crypto.PubKey `json:"pubkeys"`
}

Request request to do keygen

func NewRequest

func NewRequest(pubkeys []crypto.PubKey) Request

NewRequest creeate a new instance of keygen.Request

func (*Request) RequestToMsgId

func (r *Request) RequestToMsgId() (string, error)

type Response

type Response struct {
	PubKey      *ecdsa.PublicKey          `json:"pub_key"`
	PoolAddress string                    `json:"pool_address"`
	LocalState  *storage.KeygenLocalState `json:"local_state"`
	//Status      conversion.Status `json:"status"`
	Blame *blame.Blame `json:"blame"`
}

Response keygen response

func NewResponse

func NewResponse(pk *ecdsa.PublicKey, addr string, state *storage.KeygenLocalState, 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