Private

sealed class Private(key: ByteArray) : Key.Private(source)

Holder for an OnionAddress private key. Private keys are utilized when creating Hidden Services.

See also

Inheritors

Constructors

Link copied to clipboard
protected constructor(key: ByteArray)

Functions

Link copied to clipboard
expect abstract fun algorithm(): String
Link copied to clipboard
expect fun base16(): String

Key bytes formatted in uppercase Base16 (hex)

Link copied to clipboard
expect override fun base16OrNull(): String?
Link copied to clipboard
expect fun base32(): String

Key bytes formatted in uppercase Base32 without padding

Link copied to clipboard
expect override fun base32OrNull(): String?
Link copied to clipboard
expect fun base64(): String

Key bytes formatted in Base64 without padding

Link copied to clipboard
expect override fun base64OrNull(): String?
Link copied to clipboard

Checks if a Destroyable instance has been destroyed or not.

Link copied to clipboard
expect override fun destroy()
Link copied to clipboard
@JvmStatic
@JvmOverloads
fun Destroyable.destroyedException(namePrefix: String = ""): IllegalStateException

Creates an IllegalStateException with a default message of

Link copied to clipboard
expect fun encoded(): ByteArray

Key bytes

Link copied to clipboard
expect override fun encodedOrNull(): ByteArray?
Link copied to clipboard
expect override fun isDestroyed(): Boolean