From 16438e9fd7534c073c5f5d5e0831bc983e665b07 Mon Sep 17 00:00:00 2001 From: Michael Schmoock Date: Mon, 13 Sep 2021 11:06:16 +0200 Subject: [PATCH] BOLT 7: add gossip address descriptor type DNS hostname 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. --- 07-routing-gossip.md | 1 + 1 file changed, 1 insertion(+) diff --git a/07-routing-gossip.md b/07-routing-gossip.md index c59dcf237..4fc6e3cba 100644 --- a/07-routing-gossip.md +++ b/07-routing-gossip.md @@ -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