descriptorBase32Utf8

fun descriptorBase32Utf8(address: OnionAddress): ByteArray(source)

Produces the descriptor using the Base32 encoding of the key in the form of {onion address without .onion}:descriptor:{algorithm}:{base32 encoded key} as UTF-8 bytes.

NOTE: This is the output for which would be written to a {name}.auth_private file in the directory specified by a config's TorOption.ClientOnionAuthDir.

See also

Throws

IllegalArgumentException

If address is not compatible with this algorithm.

IllegalStateException

If isDestroyed is true.


fun descriptorBase32Utf8(publicKey: AddressKey.Public): ByteArray(source)

Produces the descriptor using the Base32 encoding of the key in the form of {onion address without .onion}:descriptor:{algorithm}:{base32 encoded key} as UTF-8 bytes.

NOTE: This is the output for which would be written to a {name}.auth_private file in the directory specified by a config's TorOption.ClientOnionAuthDir.

See also

Throws

IllegalArgumentException

If publicKey is not compatible with this algorithm.

IllegalStateException

If isDestroyed is true.