mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
common: fix up BOLT 7 references.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
0cf9f85fb7
commit
014428f81b
@@ -27,15 +27,17 @@ struct sockaddr_un;
|
||||
*
|
||||
* The following `address descriptor` types are defined:
|
||||
*
|
||||
* * `0`: padding. data = none (length 0).
|
||||
* * `1`: ipv4. data = `[4:ipv4_addr][2:port]` (length 6)
|
||||
* * `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.
|
||||
* * `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]`.
|
||||
* * `0`: padding; data = none (length 0)
|
||||
* * `1`: ipv4; data = `[4:ipv4_addr][2:port]` (length 6)
|
||||
* * `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 (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]`,
|
||||
* where `checksum = sha3(".onion checksum" | pubkey || version)[:2]`
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user