toOnionAddress

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

Throws

if no .onion address is found


Transforms provided bytes into a .onion address.

Currently, only v3 .onion addresses are supported.

Return

OnionAddress

Throws

if byte array size is inappropriate