GNUnet 0.21.1
GNUNET_DHT_PathElement Struct Reference

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. More...

#include <gnunet_dht_service.h>

Collaboration diagram for GNUNET_DHT_PathElement:
[legend]

Data Fields

struct GNUNET_CRYPTO_EddsaSignature sig
 Signature affirming the hop of type GNUNET_SIGNATURE_PURPOSE_DHT_HOP. More...
 
struct GNUNET_PeerIdentity pred
 Previous peer on the path (matches "pred" in the signed field). More...
 

Detailed Description

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.

Definition at line 166 of file gnunet_dht_service.h.

Field Documentation

◆ sig

struct GNUNET_CRYPTO_EddsaSignature GNUNET_DHT_PathElement::sig

◆ pred

struct GNUNET_PeerIdentity GNUNET_DHT_PathElement::pred

Previous peer on the path (matches "pred" in the signed field).

The public key used to create the 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.

Definition at line 184 of file gnunet_dht_service.h.

Referenced by GDS_NEIGHBOURS_handle_put(), GDS_NEIGHBOURS_handle_reply(), GNUNET_DHT_verify_path(), handle_dht_p2p_put(), and handle_dht_p2p_result().


The documentation for this struct was generated from the following file: