diff options
Diffstat (limited to 'src/identity/identity.h')
-rw-r--r-- | src/identity/identity.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/identity/identity.h b/src/identity/identity.h index 2303bf214..ef638fa36 100644 --- a/src/identity/identity.h +++ b/src/identity/identity.h | |||
@@ -245,11 +245,22 @@ GNUNET_NETWORK_STRUCT_END | |||
245 | struct GNUNET_IDENTITY_Ego | 245 | struct GNUNET_IDENTITY_Ego |
246 | { | 246 | { |
247 | /** | 247 | /** |
248 | * Hash of the private key of this ego. | ||
249 | */ | ||
250 | struct GNUNET_HashCode id; | ||
251 | |||
252 | /** | ||
248 | * Private key associated with this ego. | 253 | * Private key associated with this ego. |
249 | */ | 254 | */ |
250 | struct GNUNET_CRYPTO_EcdsaPrivateKey pk; | 255 | struct GNUNET_CRYPTO_EcdsaPrivateKey pk; |
251 | 256 | ||
252 | /** | 257 | /** |
258 | * Public key associated with this ego. Initialized on demand. | ||
259 | * Always use #GNUNET_IDENTITY_ego_get_public_key() to obtain. | ||
260 | */ | ||
261 | struct GNUNET_CRYPTO_EcdsaPublicKey pub; | ||
262 | |||
263 | /** | ||
253 | * Current name associated with this ego. | 264 | * Current name associated with this ego. |
254 | */ | 265 | */ |
255 | char *name; | 266 | char *name; |
@@ -260,9 +271,9 @@ struct GNUNET_IDENTITY_Ego | |||
260 | void *ctx; | 271 | void *ctx; |
261 | 272 | ||
262 | /** | 273 | /** |
263 | * Hash of the public key of this ego. | 274 | * Set to true once @e pub was initialized |
264 | */ | 275 | */ |
265 | struct GNUNET_HashCode id; | 276 | bool pub_initialized; |
266 | }; | 277 | }; |
267 | 278 | ||
268 | 279 | ||