[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet-scheme] 04/04: dht/struct: Define /dht:path-element.
From: |
gnunet |
Subject: |
[gnunet-scheme] 04/04: dht/struct: Define /dht:path-element. |
Date: |
Fri, 21 Jan 2022 14:45:32 +0100 |
This is an automated email from the git hooks/post-receive script.
maxime-devos pushed a commit to branch master
in repository gnunet-scheme.
commit 88c05a7b0d79510641e89d59710c8abf6e149c39
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Fri Jan 21 13:43:54 2022 +0000
dht/struct: Define /dht:path-element.
Adjusted and copied from src/dht/dht.h.
* gnu/gnunet/dht/struct.scm (/dht:path-element): New structure.
---
gnu/gnunet/dht/struct.scm | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/gnu/gnunet/dht/struct.scm b/gnu/gnunet/dht/struct.scm
index b2e8688..644d4dd 100644
--- a/gnu/gnunet/dht/struct.scm
+++ b/gnu/gnunet/dht/struct.scm
@@ -1,5 +1,5 @@
;; This file is part of GNUnet.
-;; Copyright (C) 2001, 2002, 2003, 2004, 2009, 2011 GNUnet e.V.
+;; Copyright (C) 2001-2013, 2022 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
@@ -18,6 +18,7 @@
(define-library (gnu gnunet dht struct)
(export %DHT_BLOOM_SIZE
+ /dht:path-element
/:msg:dht:client:get:stop
/:msg:dht:client:get
/:msg:dht:client:get-result-known
@@ -34,6 +35,8 @@
/:message-header /time-absolute)
(only (gnu gnunet hashcode struct)
/hashcode:512)
+ (only (gnu gnunet crypto struct)
+ /peer-identity /eddsa-signature)
(only (gnu gnunet netstruct syntactic)
define-type structure/packed)
(only (gnu gnunet netstruct procedural)
@@ -42,6 +45,23 @@
;; Size of the bloom filter the DT uses to filter peers.
(define %DHT_BLOOM_SIZE 128)
+ ;; GNUNET_DHT_PathElement in C GNUnet
+ (define-type /dht:path-element
+ (structure/packed
+ ;; TODO: path vs. path element?
+ (synopsis "A (signed) path tracking a block's flow through the DHT is
+represented by an array of path elements, each consisting of a peer on the path
+and a signature by which the peer affirms its routing decision.")
+ (field (previous /peer-identity)
+ (synopsis "The previous peer on the path.
+
+The public key used to create the signature is in the
+@emph{next} path element, or the sender of the message if this was the last
+path element.")) ;; C GNUnet says somethin about a non-existent ‘succ’ field?
+ (field (signature /eddsa-signature)
+ (synopsis "Signature affirming the hop, of type
+@code{GNUNET_SIGNATURE_PURPOSE_DHT_HOP}."))))
+
(define-type /:msg:dht:client:get:stop
(structure/packed
(synopsis "Message indicating the DHT should cancel outstanding requests
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.