SecretKeyInterface

The secret key half of an endpoint identity.

Mirrors iroh::SecretKey. Used internally by crate::Endpoint to produce its TLS certificate and to sign arbitrary messages.

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun public(): EndpointId

The public `EndpointId` derived from this secret key.

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

Sign a message, producing an ed25519 signature.

Link copied to clipboard
abstract fun toBytes(): ByteArray

Get the underlying 32 bytes of the secret key.