Documentation ¶
Index ¶
- type ApiClient
- func (client *ApiClient) GetPublicKeys(ctx context.Context, url string) ([][dilithium2.CryptoPublicKeyBytes]byte, error)
- func (client *ApiClient) GetServerStatus(ctx context.Context) (string, error)
- func (client *ApiClient) ReloadSignerKeys(ctx context.Context) error
- func (client *ApiClient) Sign(ctx context.Context, pubKey string, request SignRequestJson) (dilithium.Signature, error)
- type HttpSignerClient
- type SignRequestJson
- type SignatureResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiClient ¶
ApiClient a wrapper object around web3signer APIs. Please refer to the docs from Consensys' web3signer project.
func NewApiClient ¶
NewApiClient method instantiates a new ApiClient object.
func (*ApiClient) GetPublicKeys ¶
func (client *ApiClient) GetPublicKeys(ctx context.Context, url string) ([][dilithium2.CryptoPublicKeyBytes]byte, error)
GetPublicKeys is a wrapper method around the web3signer publickeys api (this may be removed in the future or moved to another location due to its usage).
func (*ApiClient) GetServerStatus ¶
GetServerStatus is a wrapper method around the web3signer upcheck api
func (*ApiClient) ReloadSignerKeys ¶
ReloadSignerKeys is a wrapper method around the web3signer reload api.
type HttpSignerClient ¶
type HttpSignerClient interface { Sign(ctx context.Context, pubKey string, request SignRequestJson) (dilithium.Signature, error) GetPublicKeys(ctx context.Context, url string) ([][dilithium2.CryptoPublicKeyBytes]byte, error) }
HttpSignerClient defines the interface for interacting with a remote web3signer.
type SignRequestJson ¶
type SignRequestJson []byte
type SignatureResponse ¶
SignatureResponse is the struct representing the signing request response in json format