From: Schanzenbach, Martin Date: Wed, 6 May 2020 17:15:49 +0000 (+0200) Subject: same id derivation for anon X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d83cf2d3b949ea7fdd2e7ff3722dac0ca016233e;p=oweals%2Fgnunet.git same id derivation for anon --- diff --git a/src/identity/identity_api.c b/src/identity/identity_api.c index 9269e1c79..693d4392e 100644 --- a/src/identity/identity_api.c +++ b/src/identity/identity_api.c @@ -164,8 +164,8 @@ GNUNET_IDENTITY_ego_get_anonymous () anon.pk = *GNUNET_CRYPTO_ecdsa_key_get_anonymous (); GNUNET_CRYPTO_ecdsa_key_get_public (&anon.pk, &pub); - GNUNET_CRYPTO_hash (&pub, - sizeof(pub), + GNUNET_CRYPTO_hash (&anon.pk, + sizeof(anon.pk), &anon.id); setup = 1; return &anon;