signer

package
v0.0.0-...-be3778f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PublicKeyType     = "PUBLIC KEY"
	RSAPrivateKeyType = "RSA PRIVATE KEY"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Contract

type Contract interface {
	// SetUp is called once when the signer is instantiated.
	SetUp()

	// TearDown is called once when signer is terminated.
	TearDown()

	// PublicKey returns the associated public key.
	PublicKey() []byte

	// Sign returns a signature for the given identity and data.
	Sign(identity, data []byte) (identitySignature, dataSignature []byte)

	// Metadata returns implementation-specific metadata.
	Metadata() metadata.Contract
}

Contract defines the signer abstraction.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL