toOnionAddressOrNull

@JvmStatic
@JvmName(name = "getOrNull")
fun String.toOnionAddressOrNull(): OnionAddress?(source)

Parses a String for any .onion address.

String can be either a URL containing the .onion address, or the .onion address itself.

Currently, only v3 .onion addresses are supported.

Return

OnionAddress or null


@JvmStatic
@JvmName(name = "getOrNull")
fun ByteArray.toOnionAddressOrNull(): OnionAddress?(source)

Transforms provided bytes into a .onion address.

Currently, only v3 .onion addresses are supported.

Return

OnionAddress or null