From 591cefd3159a2982703a81b637fd7887ecef9a7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20Kesim?= Date: Tue, 16 Nov 2021 14:43:54 +0100 Subject: [age restriction] progress 3/n - remove redundant struct members for age commitment hash - undo pre-mature implementation in taler-exchange-secmod-rsa.c - carry through age restriction parameter for TALER_denom_blind --- src/util/crypto.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/util/crypto.c') diff --git a/src/util/crypto.c b/src/util/crypto.c index 2d3a569a4..0bd91625e 100644 --- a/src/util/crypto.c +++ b/src/util/crypto.c @@ -188,6 +188,7 @@ TALER_planchet_prepare (const struct TALER_DenominationPublicKey *dk, if (GNUNET_OK != TALER_denom_blind (dk, &ps->blinding_key, + NULL, /* FIXME-Oec */ &coin_pub, c_hash, &pd->coin_ev, @@ -318,9 +319,10 @@ TALER_coin_ev_hash (const void *coin_ev, void TALER_coin_pub_hash (const struct TALER_CoinSpendPublicKeyP *coin_pub, + const struct TALER_AgeHash *age_commitment_hash, struct TALER_CoinPubHash *coin_h) { - if (GNUNET_is_zero (&coin_pub->age_commitment_hash)) + if (NULL == age_commitment_hash) { /* No age commitment was set */ GNUNET_CRYPTO_hash (&coin_pub->eddsa_pub, @@ -340,7 +342,7 @@ TALER_coin_pub_hash (const struct TALER_CoinSpendPublicKeyP *coin_pub, key_s); GNUNET_memcpy (&data[key_s], - &coin_pub->age_commitment_hash, + age_commitment_hash, age_s); GNUNET_CRYPTO_hash (&data, -- cgit v1.2.3