keysign

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 7 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 {
	PoolPubKey    *ecdsa.PublicKey `json:"pool_pub_key"` // pub key of the pool that we would like to send this message from
	Messages      []string         `json:"messages"`     // base64 encoded message to be signed
	SignerPubKeys []crypto.PubKey  `json:"signer_pub_keys"`
	RandomN       string           `json:"random_n"` // This random number is determined by the node forwarding the sign request, in order to ensure that the mgsID of each sign request is unique
}

Request request to sign a message

func NewRequest

func NewRequest(pk *ecdsa.PublicKey, msgs []string, signers []crypto.PubKey, randomN string) Request

func (*Request) RequestToMsgId

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

type Response

type Response struct {
	Signatures []conversion.Signature `json:"signatures"`
	Status     conversion.Status      `json:"status"`
	Blame      *blame.Blame           `json:"blame"`
}

Response key sign response

func NewResponse

func NewResponse(signatures []conversion.Signature, status conversion.Status, blame *blame.Blame) *Response

Jump to

Keyboard shortcuts

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