gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lsd0004] branch master updated: hello signature


From: gnunet
Subject: [lsd0004] branch master updated: hello signature
Date: Wed, 12 Jan 2022 23:34:59 +0100

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository lsd0004.

The following commit(s) were added to refs/heads/master by this push:
     new c890722  hello signature
c890722 is described below

commit c89072283852de70927170f8606e00a9e610ab57
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Wed Jan 12 23:34:53 2022 +0100

    hello signature
---
 draft-schanzen-r5n.xml | 112 ++++++++++++++++++++++++++++++++++++++++---------
 1 file changed, 92 insertions(+), 20 deletions(-)

diff --git a/draft-schanzen-r5n.xml b/draft-schanzen-r5n.xml
index 85a47c4..c3a6c87 100644
--- a/draft-schanzen-r5n.xml
+++ b/draft-schanzen-r5n.xml
@@ -1300,26 +1300,26 @@ Connectivity | |Underlay|  |Underlay|
           <figure anchor="figure_hello">
             <artwork name="" type="" align="left" alt=""><![CDATA[
 0   8     16    24    32    40    48    56
-+---+-----+-----+-----+-----+-----+-----+-----+
-|                   PEER-ID                   |
-|                  (32 byte)                  |
-|                                             |
-|                                             |
-+---+-----+-----+-----+-----+-----+-----+-----+
-|                  SIGNATURE                  |
-|                  (64 byte)                  |
-|                                             |
-|                                             |
-|                                             |
-|                                             |
-|                                             |
-|                                             |
-+---+-----+-----+-----+-----+-----+-----+-----+
-|                 EXPIRATION                  |
-+---+-----+-----+-----+-----+-----+-----+-----+
-/                 ADDRESSES                   /
-/             (variable length)               /
-+---+-----+-----+-----+-----+-----+-----+-----+
++-----+-----+-----+-----+-----+-----+-----+-----+
+|                     PEER-ID                   |
+|                    (32 byte)                  |
+|                                               |
+|                                               |
++-----+-----+-----+-----+-----+-----+-----+-----+
+|                    SIGNATURE                  |
+|                    (64 byte)                  |
+|                                               |
+|                                               |
+|                                               |
+|                                               |
+|                                               |
+|                                               |
++-----+-----+-----+-----+-----+-----+-----+-----+
+|                   EXPIRATION                  |
++-----+-----+-----+-----+-----+-----+-----+-----+
+/                   ADDRESSES                   /
+/               (variable length)               /
++-----+-----+-----+-----+-----+-----+-----+-----+
                 ]]></artwork>
           </figure>
           <dl>
@@ -1327,6 +1327,16 @@ Connectivity | |Underlay|  |Underlay|
             <dd>
               is the Peer-ID of the node which has generated this HELLO.
             </dd>
+            <dt>SIGNATURE</dt>
+            <dd>
+              is the signature of the HELLO.
+            </dd>
+            <dt>EXPIRATION</dt>
+            <dd>
+              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>ADDRESSES</dt>
             <dd>
               is a list of UTF-8 <xref target="RFC3629"/> URIs
@@ -1335,6 +1345,68 @@ Connectivity | |Underlay|  |Underlay|
               The strings MUST be 0-terminated.
             </dd>
           </dl>
+          <t>
+            The SIGNATURE covers a 64-bit pseudo header
+            conceptually prefixed to the block. The pseudo header includes
+            the block length, number of addresses and signature purpose.
+            The wire format is illustrated
+            in <xref target="figure_hellowithpseudo"/>.
+          </t>
+          <figure anchor="figure_hellowithpseudo">
+           <artwork name="" type="" align="left" alt=""><![CDATA[
+0     8     16    24    32    40    48    56
++-----+-----+-----+-----+-----+-----+-----+-----+
+|         SIZE (0x30)   |       PURPOSE (0x03)  |
++-----+-----+-----+-----+-----+-----+-----+-----+
+|  MSIZE    |   MTYPE   |    0x00   |   NADDR   |
++-----+-----+-----+-----+-----+-----+-----+-----+
+|                     PEER-ID                   |
+|                    (32 byte)                  |
+|                                               |
+|                                               |
++-----+-----+-----+-----+-----+-----+-----+-----+
+|                    SIGNATURE                  |
+|                    (64 byte)                  |
+|                                               |
+|                                               |
+|                                               |
+|                                               |
+|                                               |
+|                                               |
++-----+-----+-----+-----+-----+-----+-----+-----+
+|                   EXPIRATION                  |
++-----+-----+-----+-----+-----+-----+-----+-----+
+/                   ADDRESSES                   /
+/               (variable length)               /
++-----+-----+-----+-----+-----+-----+-----+-----+
+           ]]></artwork>
+          </figure>
+          <t>The Wire Format of the HELLO for Signing.</t>
+          <dl>
+            <dt>SIZE</dt>
+            <dd>
+              A 32-bit value containing the length of the signed data in bytes
+              in network byte order.
+            </dd>
+            <dt>PURPOSE</dt>
+            <dd>
+              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>
+            <dd>
+              the 16-bit message type (FIXME Why).
+            </dd>
+            <dt>NADDR</dt>
+            <dd>
+              the number of addresses in the block. In network byte order.
+            </dd>
+          </dl>
+
           <t>
             A HELLO reply block MAY be empty. Otherwise, it contains the
             HELLO of a node.

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]