Public

sealed class Public : Key.Public

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

This would be the key a Hidden Service operator adds, to only allow connections from tor clients who have the AuthKey.Private associated with this AuthKey.Public.

See also

Inheritors

Functions

Link copied to clipboard
expect abstract fun algorithm(): String
Link copied to clipboard
override fun base16(): String
Link copied to clipboard
expect override fun base16OrNull(): String
Link copied to clipboard
override fun base32(): String
Link copied to clipboard
expect override fun base32OrNull(): String
Link copied to clipboard
override fun base64(): String
Link copied to clipboard
expect override fun base64OrNull(): String
Link copied to clipboard

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

Link copied to clipboard

Produces the base 64 descriptor string for this AuthKey.Public in the form of descriptor:{algorithm}:{base-64}.

Link copied to clipboard
override fun encoded(): ByteArray
Link copied to clipboard
expect override fun encodedOrNull(): ByteArray