Documentation ¶
Overview ¶
Package sign give the API to implement a custom signer that is able to sign and verify a sequence of bytes or a string.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keys ¶
type Keys interface{}
Keys tagger interface to store the information about the key (if any) that are used to sign a message.
type Signer ¶
type Signer interface { // SignMsg sign a string and return the result or an error SignMsg(msg *string) (*string, error) // VerifyMsg a signature with optional public key specified as parameter // or use some key stored inside the struct. VerifyMsg(signature *string) (bool, error) }
Signer is a common interface that give the possibility to implement a signer and verify algorithm in pure go
Click to show internal directories.
Click to hide internal directories.