descriptorBase64Utf8

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

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

See also

Throws

IllegalArgumentException

If address is not compatible with this algorithm.

IllegalStateException

If isDestroyed is true.


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

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

See also

Throws

IllegalArgumentException

If publicKey is not compatible with this algorithm.

IllegalStateException

If isDestroyed is true.