Signer

class Signer(val certificate: Certificate, privateKey: PrivateKey)

Object to produce detached signatures given a key pair.

Parameters

certificate

The certificate of the private node

privateKey

The private key of the private node

Constructors

Link copied to clipboard
constructor(certificate: Certificate, privateKey: PrivateKey)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun sign(plaintext: ByteArray, detachedSignatureType: DetachedSignatureType): ByteArray