PrivateKey

interface PrivateKey

An interface of a private key. It is associated to a signature scheme and provides signing capabilities.

Inheritors

Functions

Link copied to clipboard
abstract fun publicKey(): PublicKey

Derive the public key associated with the private key

Link copied to clipboard
abstract fun sign(message: HexInput): Signature

Sign the given message with the private key.

Link copied to clipboard
abstract fun toByteArray(): ByteArray

Get the private key in bytes.