From d83cf2d3b949ea7fdd2e7ff3722dac0ca016233e Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Wed, 6 May 2020 19:15:49 +0200 Subject: [PATCH] same id derivation for anon --- src/identity/identity_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.25.1