Class NetAddress.OnionV3

  • Enclosing class:
    NetAddress

    public static final class NetAddress.OnionV3
    extends NetAddress
    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\".
    • 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