OnionAddress

sealed class OnionAddress : Address

Base abstraction for denoting a String value as a .onion address

e.g.

val string = "2gzyxa5ihm7nsggfxnu52rck2vv4rvmdlkiu3zzui5du4xyclen53wid"

string.toOnionAddress()
"http://${string}.onion:8080/some/path".toOnionAddress()
"http://subdomain.${string}.onion:8080/some/path".toOnionAddress()

See also

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Holder for a 56 character v3 onion address without the scheme or .onion appended.

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Wraps the OnionAddress in its AddressKey.Public format for extended functionality.

Link copied to clipboard

Returns value in its canonicalized hostname form

Link copied to clipboard
operator override fun compareTo(other: Address): Int
Link copied to clipboard
abstract fun decode(): ByteArray
Link copied to clipboard

Creates a AddressMapping that instructs tor to generate a virtual IPAddress.V4 address and map the provided OnionAddress to it.

Link copied to clipboard

Creates a AddressMapping that instructs tor to generate a virtual IPAddress.V4 address and map the provided OnionAddress to it.