Companion

Functions

Link copied to clipboard
@JvmStatic
@JvmName(name = "get")
fun ByteArray.toOnionAddress(): OnionAddress

Transforms provided bytes into a .onion address.

@JvmStatic
@JvmName(name = "get")
fun String.toOnionAddress(): OnionAddress

Parses a String for any .onion address.

Link copied to clipboard
@JvmStatic
@JvmName(name = "getOrNull")
fun ByteArray.toOnionAddressOrNull(): OnionAddress?

Transforms provided bytes into a .onion address.

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

Parses a String for any .onion address.