summaryrefslogtreecommitdiff
path: root/src/identity/identity.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/identity/identity.h')
-rw-r--r--src/identity/identity.h15
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
struct GNUNET_IDENTITY_Ego
{
/**
+ * Hash of the private key of this ego.
+ */
+ struct GNUNET_HashCode id;
+
+ /**
* Private key associated with this ego.
*/
struct GNUNET_CRYPTO_EcdsaPrivateKey pk;
/**
+ * Public key associated with this ego. Initialized on demand.
+ * Always use #GNUNET_IDENTITY_ego_get_public_key() to obtain.
+ */
+ struct GNUNET_CRYPTO_EcdsaPublicKey pub;
+
+ /**
* Current name associated with this ego.
*/
char *name;
@@ -260,9 +271,9 @@ struct GNUNET_IDENTITY_Ego
void *ctx;
/**
- * Hash of the public key of this ego.
+ * Set to true once @e pub was initialized
*/
- struct GNUNET_HashCode id;
+ bool pub_initialized;
};