Documentation ¶
Overview ¶
Package sign implements funcionality to create signers, which are able to sign messages and verify signed messages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ed25519Signer ¶
type Ed25519Signer struct {
// contains filtered or unexported fields
}
type Signer ¶
type Signer interface { Sign(message []byte) ([]byte, error) Verify(message, sig []byte) (bool, error) }
Signer is the interface implemented by any value that has Sign and Verify methods. Signers are able to sign messages and verify them using a signature.
func NewEd25519Signer ¶
func NewEd25519Signer() Signer
NewEd25519Signer creates an ed25519 signer from scratch.
func NewEd25519SignerFromFile ¶
NewEd25519SignerFromFile creates an ed25519 signer using existing private and public keys. It also checks that keys are usable.
Click to show internal directories.
Click to hide internal directories.