aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/did/gnunet-did.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/did/gnunet-did.c b/src/did/gnunet-did.c
index ad88bcaf6..bf5901a79 100644
--- a/src/did/gnunet-did.c
+++ b/src/did/gnunet-did.c
@@ -18,9 +18,7 @@
18 SPDX-License-Identifier: AGPL3.0-or-later 18 SPDX-License-Identifier: AGPL3.0-or-later
19 */ 19 */
20 20
21// TODO: Public Key in DID Docuement 21// TODO: Public Key in DID Docuement - pkey_multibase_json
22// TODO: Correct Key type
23// TODO: valid time when setting DID Docuement - replace - create
24// TODO: uncrustify 22// TODO: uncrustify
25// TODO: Unit Tests 23// TODO: Unit Tests
26 24
@@ -488,10 +486,7 @@ create_did_ego_lockup_cb(void *cls, struct GNUNET_IDENTITY_Ego * ego)
488 486
489 GNUNET_IDENTITY_ego_get_public_key(ego, &pkey); 487 GNUNET_IDENTITY_ego_get_public_key(ego, &pkey);
490 488
491 printf("DEBUG: Key type: %ld\n", (unsigned long) pkey.type); 489 if (ntohl(pkey.type) != GNUNET_GNSRECORD_TYPE_EDKEY)
492
493 // if (false)
494 if (pkey.type != GNUNET_GNSRECORD_TYPE_EDKEY)
495 { 490 {
496 printf("The EGO has to have an EDDSA key pair\n"); 491 printf("The EGO has to have an EDDSA key pair\n");
497 GNUNET_SCHEDULER_add_now(&cleanup, NULL); 492 GNUNET_SCHEDULER_add_now(&cleanup, NULL);