[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: DHT: signed path definition (not impleme
From: |
gnunet |
Subject: |
[gnunet] branch master updated: DHT: signed path definition (not implemented at all) |
Date: |
Sun, 09 Jan 2022 11:31:57 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new c3ecadd45 DHT: signed path definition (not implemented at all)
c3ecadd45 is described below
commit c3ecadd45b11f82e22ba81b42864c7826d0f97c6
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Jan 9 11:31:53 2022 +0100
DHT: signed path definition (not implemented at all)
---
src/dht/dht.h | 2 +-
src/include/gnunet_dht_service.h | 57 +++++++++++++++++++++++++++++++++++++++-
2 files changed, 57 insertions(+), 2 deletions(-)
diff --git a/src/dht/dht.h b/src/dht/dht.h
index 86f1b9b49..c69b69f07 100644
--- a/src/dht/dht.h
+++ b/src/dht/dht.h
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- Copyright (C) 2001, 2002, 2003, 2004, 2009, 2011 GNUnet e.V.
+ Copyright (C) 2001, 2002, 2003, 2004, 2009, 2011, 2021 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
diff --git a/src/include/gnunet_dht_service.h b/src/include/gnunet_dht_service.h
index 160beffdd..15da9ecdd 100644
--- a/src/include/gnunet_dht_service.h
+++ b/src/include/gnunet_dht_service.h
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet
- Copyright (C) 2004-2013, 2016 GNUnet e.V.
+ Copyright (C) 2004-2013, 2016, 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
@@ -113,6 +113,61 @@ enum GNUNET_DHT_RouteOption
};
+GNUNET_NETWORK_STRUCT_BEGIN
+
+/**
+ * Message signed by a peer when doing path tracking.
+ */
+struct GNUNET_DHT_HopSignature
+{
+ /**
+ * Must be #GNUNET_SIGNATURE_PURPOSE_DHT_HOP.
+ */
+ struct GNUNET_CRYPTO_EccSignaturePurpose purpose;
+
+ /**
+ * Previous hop the message was received from. All zeros
+ * if this peer was the initiator.
+ */
+ struct GNUNET_PeerIdentity pred;
+
+ /**
+ * Next hop the message was forwarded to.
+ */
+ struct GNUNET_PeerIdentity succ;
+};
+
+
+/**
+ * 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.
+ */
+struct GNUNET_DHT_PathElement
+{
+
+ /**
+ * Previous peer on the path (matches "pred" in the signed field).
+ *
+ * The public key used to create the @e sig is in the *next* path element,
+ * or is the sender of the message if this was the last path element.
+ *
+ * The "succ" field can be found in 'pred' if there are two more path
+ * elements in the path, is the sender if there is only one more path
+ * element, or the recipient if this was the last element on the path.
+ */
+ struct GNUNET_PeerIdentity pred;
+
+ /**
+ * Signature affirming the hop of type
+ * #GNUNET_SIGNATURE_PURPOSE_DHT_HOP.
+ */
+ struct GNUNET_CRYPTO_EddsaSignature sig;
+
+};
+
+GNUNET_NETWORK_STRUCT_END
+
/**
* Initialize the connection with the DHT service.
*
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: DHT: signed path definition (not implemented at all),
gnunet <=