1
0
mirror of https://github.com/lightning/bolts.git synced 2024-11-19 01:50:03 +01:00

BOLT 7: mention Tor hidden service. (#316)

* BOLT 7: mention Tor hidden service.

This is a common term to search for, rather than onion address (which is
what Tor hidden services use).

Reported-by: Alan Manuel K. Gloria <almkglor@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2017-12-14 02:06:28 +00:00 committed by GitHub
parent faee5ab6e7
commit 298489b421
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -225,7 +225,7 @@ The following `address descriptor` types are defined:
* `2`: ipv6. data = `[16:ipv6_addr][2:port]` (length 18)
* `3`: tor v2 onion service. data = `[10:onion_addr][2:port]` (length 12)
* Version 2 onion service addresses. Encodes an 80-bit truncated `SHA-1` hash
of a 1024-bit `RSA` public key for the onion service.
of a 1024-bit `RSA` public key for the onion service (a.k.a. Tor hidden service).
* `4`: tor v3 onion service. data `[35:onion_addr][2:port]` (length 37)
* Version 3 ([prop224](https://gitweb.torproject.org/torspec.git/tree/proposals/224-rend-spec-ng.txt))
onion service addresses. Encodes: `[32:32_byte_ed25519_pubkey] || [2:checksum] || [1:version]`.