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.
Click to show internal directories.
Click to hide internal directories.