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 (*Request) RequestToMsgId ¶
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
Click to show internal directories.
Click to hide internal directories.