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 Sep 13, 2021
1 parent 38abac6 commit 3d85968
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 07-routing-gossip.md
Original file line number Diff line number Diff line change
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 = `[byte:len][len*byte:hostname][u16:port]` (length up to 258)

### Requirements

Expand Down

0 comments on commit 3d85968

Please sign in to comment.