diff options
Diffstat (limited to 'src/identity/gnunet-service-identity.c')
-rw-r--r-- | src/identity/gnunet-service-identity.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/identity/gnunet-service-identity.c b/src/identity/gnunet-service-identity.c index 05f9ce134..c1ef9565f 100644 --- a/src/identity/gnunet-service-identity.c +++ b/src/identity/gnunet-service-identity.c | |||
@@ -20,27 +20,16 @@ | |||
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @file identity/gnunet-service-identity.c | 22 | * @file identity/gnunet-service-identity.c |
23 | * @brief network size estimation service | 23 | * @brief identity (management_ service |
24 | * @author Nathan Evans | ||
25 | * @author Christian Grothoff | 24 | * @author Christian Grothoff |
26 | * | 25 | * |
27 | * The purpose of this service is to estimate the size of the network. | 26 | * The purpose of this service is to manage private keys that |
28 | * Given a specified interval, each peer hashes the most recent | 27 | * represent the various egos/pseudonyms/identities of a GNUnet user. |
29 | * timestamp which is evenly divisible by that interval. This hash is | ||
30 | * compared in distance to the peer identity to choose an offset. The | ||
31 | * closer the peer identity to the hashed timestamp, the earlier the | ||
32 | * peer sends out a "nearest peer" message. The closest peer's | ||
33 | * message should thus be received before any others, which stops | ||
34 | * those peer from sending their messages at a later duration. So | ||
35 | * every peer should receive the same nearest peer message, and from | ||
36 | * this can calculate the expected number of peers in the network. | ||
37 | */ | 28 | */ |
38 | #include "platform.h" | 29 | #include "platform.h" |
39 | #include <math.h> | ||
40 | #include "gnunet_util_lib.h" | 30 | #include "gnunet_util_lib.h" |
41 | #include "gnunet_constants.h" | 31 | #include "gnunet_constants.h" |
42 | #include "gnunet_protocols.h" | 32 | #include "gnunet_protocols.h" |
43 | #include "gnunet_signatures.h" | ||
44 | #include "gnunet_statistics_service.h" | 33 | #include "gnunet_statistics_service.h" |
45 | #include "gnunet_identity_service.h" | 34 | #include "gnunet_identity_service.h" |
46 | #include "identity.h" | 35 | #include "identity.h" |