GNUnet  0.16.x
Data Fields
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_PeerIdentity pred
 Previous peer on the path (matches "pred" in the signed field). More...
 
struct GNUNET_CRYPTO_EddsaSignature sig
 Signature affirming the hop of type GNUNET_SIGNATURE_PURPOSE_DHT_HOP. 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 156 of file gnunet_dht_service.h.

Field Documentation

◆ 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 560 of file gnunet_dht_service.h.

Referenced by check_dht_p2p_hello(), check_dht_p2p_put(), GNUNET_DHT_verify_path(), and handle_dht_p2p_put().

◆ sig

struct GNUNET_CRYPTO_EddsaSignature GNUNET_DHT_PathElement::sig

Signature affirming the hop of type GNUNET_SIGNATURE_PURPOSE_DHT_HOP.

Definition at line 560 of file gnunet_dht_service.h.

Referenced by check_dht_p2p_hello(), check_dht_p2p_put(), GNUNET_DHT_verify_path(), and handle_dht_p2p_put().


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