Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Signer ¶
type Signer interface {
// Sign takes a message as bytes and returns its signature.
Sign(message []byte) ([]byte, error)
// GetPublic returns the public key paired with this private key.
GetPublic() (crypto.PubKey, error)
// GetAddress returns the address of the signer.
GetAddress() ([]byte, error)
}
Signer is an interface for signing and verifying messages.
Directories
¶
| Path | Synopsis |
|---|---|
|
File Remote Signer implements the Signer interface using a file to store the keys.
|
File Remote Signer implements the Signer interface using a file to store the keys. |
|
Noop remote signer implements the Signer interface using a no-op signer.
|
Noop remote signer implements the Signer interface using a no-op signer. |
Click to show internal directories.
Click to hide internal directories.