package
0.2.4
Repository: https://github.com/decentr-net/cerberus.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

GetAminoSecp256k1PubKey adds amino secp256k1 pubkey prefix to pubkey(including length-prefix).
GetMessageToSign returns message to sign.
NewClient returns client with http.DefaultClient.
NewClientWithHTTPClient returns client with provided http.Client.
NewMockCerberus creates a new mock instance.
Sign signs http request.
Verify verifies request's signature with public key.

# Constants

PublicKeyHeader is name for public key http header.
SignatureHeader is name for signature http header.

# Variables

ErrInvalidPublicKey is returned when public key is invalid.
ErrInvalidRequest is returned when request is invalid.
ErrInvalidSignature is returned when signature is invalid.
ErrNotFound is returned when object is not found.
ErrNotVerified is returned when signature is wrong.

# Structs

Error ..
MockCerberus is a mock of Cerberus interface.
MockCerberusMockRecorder is the mock recorder for MockCerberus.
PDVMeta contains info about PDV.
SavePDVResponse ..

# Interfaces

Cerberus provides user-friendly API methods.