PrivateKey

Holder for a private key associated with a ED25519_V3 Hidden Service's client authentication configuration.

This would be the key added to a tor client by a user who wishes to connect to a Hidden Service that has been configured using the X25519.PublicKey associated with this X25519.PrivateKey.

See also

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun algorithm(): String

x25519

Link copied to clipboard
expect fun base16(): String
Link copied to clipboard
expect override fun base16OrNull(): String?
Link copied to clipboard
expect fun base32(): String
Link copied to clipboard
expect override fun base32OrNull(): String?
Link copied to clipboard
expect fun base64(): String
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

Produces the base 32 descriptor string for this AuthKey.Private in the form of {onion-address}:descriptor:{algorithm}:{base-32}.

Link copied to clipboard

Produces the base 32 descriptor string for this AuthKey.Private in the form of {address-w/o-.onion}:descriptor:{algorithm}:{base-32}, or null if isDestroyed is true.

Link copied to clipboard

Produces the base 64 descriptor string for this AuthKey.Private in the form of {address-w/o-.onion}:descriptor:{algorithm}:{base-64}.

Produces the base 64 descriptor string for this AuthKey.Private in the form of {address-w/o-.onion}:{algorithm}:{base-64}.

Link copied to clipboard

Produces the base 64 descriptor string for this AuthKey.Private in the form of {address-w/o-.onion}:descriptor:{algorithm}:{base-64}, or null if isDestroyed is true.

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