gana

GNUnet Assigned Numbers Authority
Log | Files | Refs | README | LICENSE

commit 9618881f27d5b8343dc2901fa9a8c4aed9e4913c
parent 65a99770236a783fa3aa018cf6ab1a893795e250
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date:   Fri, 27 Nov 2026 13:08:55 +0100

update GANA for hello v2

Diffstat:
Mgnunet-dht-block-types/registry.rec | 7+++++++
Agnunet-hello-record-types/.gitignore | 1+
Agnunet-hello-record-types/Makefile | 28++++++++++++++++++++++++++++
Agnunet-hello-record-types/POLICY | 11+++++++++++
Agnunet-hello-record-types/README | 13+++++++++++++
Agnunet-hello-record-types/h.footer | 11+++++++++++
Agnunet-hello-record-types/h.header | 43+++++++++++++++++++++++++++++++++++++++++++
Agnunet-hello-record-types/h.template | 6++++++
Agnunet-hello-record-types/registry.rec | 37+++++++++++++++++++++++++++++++++++++
Agnunet-hello-record-types/rst.footer | 0
Agnunet-hello-record-types/rst.header.template | 11+++++++++++
Agnunet-hello-record-types/rst.template | 4++++
Mgnunet-signatures/Makefile | 2+-
Mgnunet-signatures/registry.rec | 24++++++++++++++++++++++++
14 files changed, 197 insertions(+), 1 deletion(-)

diff --git a/gnunet-dht-block-types/registry.rec b/gnunet-dht-block-types/registry.rec @@ -100,3 +100,10 @@ Number: 27 Name: SETU_TEST Comment: Block for testing set union. If first byte of the block is non-zero, the block is considered invalid. References: None + +Number: 13 +Name: DHT_HELLO_V2 +Comment: Type of a block that contains a DHT-NG HELLO for a peer. +References: LSD-0004 + + diff --git a/gnunet-hello-record-types/.gitignore b/gnunet-hello-record-types/.gitignore @@ -0,0 +1 @@ +gnu-name-system-record-types.h diff --git a/gnunet-hello-record-types/Makefile b/gnunet-hello-record-types/Makefile @@ -0,0 +1,28 @@ +FILES=gnunet_hello_record_types.h gnunet_hello_record_types.rst +all: check $(FILES) + +check: + recfix --check registry.rec + +distclean: + rm -f *.tmp +clean: + rm -f $(FILES) *.tmp + +gnunet_hello_record_types.h.tmp: registry.rec h.template + ../format.sh h.template < registry.rec > $@ + +gnunet_hello_record_types.h: h.header gnunet_hello_record_types.h.tmp h.footer + cat h.header gnunet_hello_record_types.h.tmp h.footer > $@ + +gnunet_hello_record_types.rst.tmp: registry.rec rst.template + ../format.sh rst.template < registry.rec > $@ + +rst.header.tmp: + cat README POLICY rst.header.template > $@ + +gnunet_hello_record_types.rst: rst.header.tmp gnunet_hello_record_types.rst.tmp rst.footer + cat rst.header.tmp gnunet_hello_record_types.rst.tmp rst.footer > $@ + + +.PHONY: check clean distclean diff --git a/gnunet-hello-record-types/POLICY b/gnunet-hello-record-types/POLICY @@ -0,0 +1,11 @@ +Policy +^^^^^^ + +Developers working on GNUnet or packages based on GNUnet should +feel free to extend this registry. Entries may be deleted if +no code using them is still expected to be in production anywhere. + +Updating the name of the package or subsystem is allowed provided +that the code using the signature is being moved, as those fields +are merely informational or used for code generation. + diff --git a/gnunet-hello-record-types/README b/gnunet-hello-record-types/README @@ -0,0 +1,13 @@ +R5N DHT Block Types +------------------- + +This registry is for GNUnet DHT Block Types. + +DHT Block Types types uniquely identify the different kinds +of blocks that can be found in the GNUnet DHT. + +This registry is used to ensure that the names and numeric values +used to identify block types are uniquely defined and to +allow DHT implementors to find out details about the +respective semantics and human-readable syntax. + diff --git a/gnunet-hello-record-types/h.footer b/gnunet-hello-record-types/h.footer @@ -0,0 +1,11 @@ +}; + + +#if 0 /* keep Emacsens' auto-indent happy */ +{ +#endif +#ifdef __cplusplus +} +#endif + +#endif diff --git a/gnunet-hello-record-types/h.header b/gnunet-hello-record-types/h.header @@ -0,0 +1,43 @@ +/* + This file is part of GNUnet + Copyright (C) 2012-2026 GNUnet e.V. + + GNUnet is free software: you can redistribute it and/or modify it + under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, + or (at your option) any later version. + + GNUnet is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + + SPDX-License-Identifier: AGPL3.0-or-later + */ +#ifndef GNUNET_HELLO_RECORD_TYPES_H +#define GNUNET_HELLO_RECORD_TYPES_H + +/** + * WARNING: + * This header is generated! + * In order to add HELLO record types, you must register + * them in GANA, and then use the header generation script + * to create an update of this file. You may then replace this + * file with the update. + */ + +#ifdef __cplusplus +extern "C" { +#if 0 /* keep Emacsens' auto-indent happy */ +} +#endif +#endif + +/** + * Records in a HELLO must have a unique type. + */ +enum GNUNET_HelloRecordType +{ diff --git a/gnunet-hello-record-types/h.template b/gnunet-hello-record-types/h.template @@ -0,0 +1,6 @@ + + + /** + * {{Comment}} + */ + GNUNET_HELLO_RECORD_TYPE_{{Name}} = {{Number}}, diff --git a/gnunet-hello-record-types/registry.rec b/gnunet-hello-record-types/registry.rec @@ -0,0 +1,37 @@ +# -*- mode: rec -*- +# +# Registry for GNU Name System record types +# + +%rec: HelloRecordType +%key: Number +%type: Number int +%mandatory: Number +%typedef: Name_t regexp /^[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-]*$/ +%type: Name Name_t +%unique: Name +%mandatory: Name +%mandatory: Comment +%allowed: Contact +%allowed: References +%sort: Number Name Contact References + +Number: 0 +Name: ADDRESS +Comment: Addresses where a peer is reachable. +References: LSD0018 + +Number: 1 +Name: HPKE_X25519 +Comment: HPKE X25519 key material. +References: LSD0018 + +Number: 2 +Name: HPKE_XWING +Comment: HPKE X-Wing (ML-KEM+X25519) key material. +References: LSD0018 + +Number: 3 +Name: ID_ED25519 +Comment: Peer identity (signing) key. Ed25519 key material. +References: LSD0018 diff --git a/gnunet-hello-record-types/rst.footer b/gnunet-hello-record-types/rst.footer diff --git a/gnunet-hello-record-types/rst.header.template b/gnunet-hello-record-types/rst.header.template @@ -0,0 +1,11 @@ +Entries +^^^^^^^ + +.. list-table:: R5N Block Types + :widths: auto + :header-rows: 1 + + * - Name + - Number + - References + - Comment diff --git a/gnunet-hello-record-types/rst.template b/gnunet-hello-record-types/rst.template @@ -0,0 +1,4 @@ + * - {{Name}} + - {{Number}} + - {{References}} + - {{Comment}} diff --git a/gnunet-signatures/Makefile b/gnunet-signatures/Makefile @@ -26,7 +26,7 @@ taler_signatures.go.tmp: registry.rec go-taler.template taler_signatures.go: go.header taler_signatures.go.tmp go.footer cat $^ > taler_signatures.go.oct.tmp - sed -E 's/= 00*([0-9])/= \1/g;s/([A-Z])([A-Z]*)/\1\L\2/g;s/_//g' taler_signatures.go.oct.tmp > $@ + gsed -E 's/= 00*([0-9])/= \1/g;s/([A-Z])([A-Z]*)/\1\L\2/g;s/_//g' taler_signatures.go.oct.tmp > $@ taler_signatures.ts.tmp: registry.rec ts-taler.template ../format.sh ts-taler.template 'Package = "GNU Taler"' < registry.rec > $@ $@ diff --git a/gnunet-signatures/registry.rec b/gnunet-signatures/registry.rec @@ -68,6 +68,12 @@ Comment: Signature by which a peer affirms its address. Package: GNUnet Subsystem: GNUnet-HELLO +Number: 8 +Name: HELLO_V2 +Comment: Signature by which a peer affirms its address. +Package: GNUnet +Subsystem: GNUnet-HELLO + Number: 11 Name: DNS_RECORD Comment: Signature on a GNUNET_DNS_Advertisement. @@ -218,6 +224,24 @@ Comment: Signature by a peer sending back the nonce received at initial handshak Package: GNUnet Subsystem: GNUnet-TRANSPORT-TCP +Number: 40 +Name: CADET_KX +Comment: Signature used in CADET KX. +Package: GNUnet +Subsystem: GNUnet-CADET + +Number: 41 +Name: TRANSPORT_DV_INITIATOR_V2 +Comment: Signature by a peer affirming that it originated the DV path. +Package: GNUnet +Subsystem: GNUnet-TRANSPORT + +Number: 42 +Name: TRANSPORT_EPHEMERAL_V2 +Comment: Signature by a peer affirming that the given ephemeral key is currently in use by that peer's transport service. +Package: GNUnet +Subsystem: GNUnet-TRANSPORT + #----------------------------------------------------------------------------- # GNU Taler, >= 1000