package wp_responses

import "github.com/silence-laboratories/wallet-provider-go-sdk/networkclient/wp_responses"

Index

Types

type AddEphKeyResponse

type AddEphKeyResponse struct {
	KeyID  string `json:"keyId"`
	Status string `json:"status"`
}

type KeyshareID

type KeyshareID struct {
	SignAlg types.SignatureAlgorithm `json:"sign_alg"`
	KeyID   string                   `json:"key_id"`
}

type KeyshareIdentifier

type KeyshareIdentifier struct {
	Alg types.SignatureAlgorithm `json:"signAlg"`
	ID  string                   `json:"keyId"`
	// Public key is hex-encoded string format. The encoding depends on the signature algorithm:
	// - `secp256k1` (ECDSA): SEC1. Uncompressed `0x04 || X || Y`; compressed `0x02/0x03 || X` (prefix by Y parity).
	// - `ed25519` (EdDSA): RFC 8032 32-byte compressed Edwards.
	PK string `json:"publicKey"`
}
func (*KeyshareIdentifier) String
func (k *KeyshareIdentifier) String() string

type QuorumChangeResponse

type QuorumChangeResponse struct {
	KeyshareID
}

type SigngenResponse

type SigngenResponse struct {
	// For ECDSA: Hexstring of length 128 bytes, in a form: r || s. The r and s are 64 bytes long.
	// For EdDSA: RFC 8032 64-byte signature.
	Sign string `json:"sign"`
	// Unique ID of the transaction.
	TransactionID string `json:"transactionId"`
	// For ECDSA: Recovery id, either 0, or 1
	// For EdDSA: unused
	Recid *uint8 `json:"recid,omitempty"`
}
func (*SigngenResponse) String
func (s *SigngenResponse) String() string