Skip to content

Commit

Permalink
BOLT 7: add gossip address descriptor type DNS hostname
Browse files Browse the repository at this point in the history
This introduces a new gossip address descriptor type used for DNS hostnames.
This is particular useful for dynamic DNS users that want to use their home
ISP connection with changing IP addresses without relying only on TOR.

The `len` field is deliberately encoded with just a byte (u8) since
POSIX hostnames do not exceed 255 bytes in total.
  • Loading branch information
m-schmoock committed Oct 9, 2021
1 parent 498f104 commit 16438e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 07-routing-gossip.md
Expand Up @@ -285,6 +285,7 @@ The following `address descriptor` types are defined:
onion service addresses; Encodes:
`[32:32_byte_ed25519_pubkey] || [2:checksum] || [1:version]`, where
`checksum = sha3(".onion checksum" | pubkey || version)[:2]`.
* `5`: DNS hostname; data = `[1:hostname_len][hostname_len:hostname][2:port]` (length up to 258)

### Requirements

Expand Down

0 comments on commit 16438e9

Please sign in to comment.