lsd0004

LSD0004: R5N Distributed Hash Table
Log | Files | Refs

commit 061962246d49eadbabedbc6055c8c6b30d661f59
parent c89072283852de70927170f8606e00a9e610ab57
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date:   Wed, 12 Jan 2022 23:45:52 +0100

fix hello sig

Diffstat:
Mdraft-schanzen-r5n.xml | 37+++++++++++++++----------------------
1 file changed, 15 insertions(+), 22 deletions(-)

diff --git a/draft-schanzen-r5n.xml b/draft-schanzen-r5n.xml @@ -1358,15 +1358,10 @@ Connectivity | |Underlay| |Underlay| +-----+-----+-----+-----+-----+-----+-----+-----+ | SIZE (0x30) | PURPOSE (0x03) | +-----+-----+-----+-----+-----+-----+-----+-----+ -| MSIZE | MTYPE | 0x00 | NADDR | -+-----+-----+-----+-----+-----+-----+-----+-----+ -| PEER-ID | -| (32 byte) | -| | -| | +| EXPIRATION | +-----+-----+-----+-----+-----+-----+-----+-----+ -| SIGNATURE | -| (64 byte) | +| H_ADDRS | +| (64 byte) | | | | | | | @@ -1374,11 +1369,6 @@ Connectivity | |Underlay| |Underlay| | | | | +-----+-----+-----+-----+-----+-----+-----+-----+ -| EXPIRATION | -+-----+-----+-----+-----+-----+-----+-----+-----+ -/ ADDRESSES / -/ (variable length) / -+-----+-----+-----+-----+-----+-----+-----+-----+ ]]></artwork> </figure> <t>The Wire Format of the HELLO for Signing.</t> @@ -1393,20 +1383,23 @@ Connectivity | |Underlay| |Underlay| A 32-bit signature purpose flag. This field MUST be 3 (in network byte order). </dd> - <dt>MSIZE</dt> - <dd> - The 16-bit message size (FIXME Why). - </dd> - <dt>MTYPE</dt> + <dt>EXPIRATION</dt> <dd> - the 16-bit message type (FIXME Why). + denotes the absolute 64-bit expiration date of the HELLO. + In microseconds since midnight (0 hour), January 1, 1970 in network + byte order. </dd> - <dt>NADDR</dt> + <dt>H_ADDRS</dt> <dd> - the number of addresses in the block. In network byte order. + a hash over the addresses in the HELLO. </dd> </dl> - + <t> + The hash over all addresses is generated as follows: + </t> + <sourcecode> +SHA512(address0 | address1 | ... | addressN) FIXME we hash \0 + </sourcecode> <t> A HELLO reply block MAY be empty. Otherwise, it contains the HELLO of a node.