descriptorBase64

fun descriptorBase64(address: OnionAddress): String(source)

Produces the descriptor String using the Base64 encoding of the key in the form of {onion address without .onion}:descriptor:{algorithm}:{base64 encoded key}.

NOTE: String is immutable and thus cannot be back-filled after use. One should prefer using descriptorBase64Utf8 instead.

See also

Throws

IllegalArgumentException

If address is not compatible with this algorithm.

IllegalStateException

If isDestroyed is true.


fun descriptorBase64(publicKey: AddressKey.Public): String(source)

Produces the descriptor String using the Base64 encoding of the key in the form of {onion address without .onion}:descriptor:{algorithm}:{base64 encoded key}.

NOTE: String is immutable and thus cannot be back-filled after use. One should prefer using descriptorBase64Utf8 instead.

See also

Throws

IllegalArgumentException

If publicKey is not compatible with this algorithm.

IllegalStateException

If isDestroyed is true.