Package org.ldk.structs
Class SocketAddress.OnionV3
- java.lang.Object
-
- org.ldk.structs.SocketAddress
-
- org.ldk.structs.SocketAddress.OnionV3
-
- Enclosing class:
- SocketAddress
public static final class SocketAddress.OnionV3 extends SocketAddress
A new-style Tor onion address/port on which the peer is listening. To create the human-readable \"hostname\", concatenate the ED25519 pubkey, checksum, and version, wrap as base32 and append \".onion\".
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ldk.structs.SocketAddress
SocketAddress.Hostname, SocketAddress.OnionV2, SocketAddress.OnionV3, SocketAddress.TcpIpV4, SocketAddress.TcpIpV6
-
-
Field Summary
Fields Modifier and Type Field Description shortchecksumThe checksum of the pubkey and version, as included in the onion addressbyte[]ed25519_pubkeyThe ed25519 long-term public key of the peershortportThe port on which the node is listeningbyteversionThe version byte, as defined by the Tor Onion v3 spec.
-
-
-
Field Detail
-
ed25519_pubkey
public final byte[] ed25519_pubkey
The ed25519 long-term public key of the peer
-
checksum
public final short checksum
The checksum of the pubkey and version, as included in the onion address
-
version
public final byte version
The version byte, as defined by the Tor Onion v3 spec.
-
port
public final short port
The port on which the node is listening
-
-