From 00350bc228af8f79df56df13aa10e5f86de5a5a5 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 12 Apr 2020 16:44:28 +0200 Subject: remove c_hash from planchet detail where it does not logically belong --- src/include/taler_crypto_lib.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/include') diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h index 868bbebe9..3c5358144 100644 --- a/src/include/taler_crypto_lib.h +++ b/src/include/taler_crypto_lib.h @@ -445,13 +445,6 @@ struct TALER_PlanchetDetail */ struct GNUNET_HashCode denom_pub_hash; - /** - * Hash of the coin's public key. Kept around so we do not need to - * compute it again. Can be recomputed by hashing the public key - * of @a coin_priv if storage is at a premium. - */ - struct GNUNET_HashCode c_hash; - /** * Blinded coin (see GNUNET_CRYPTO_rsa_blind()). Note: is malloc()'ed! */ @@ -589,6 +582,7 @@ TALER_planchet_setup_random (struct TALER_PlanchetSecretsP *ps); * * @param dk denomination key for the coin to be created * @param ps secret planchet internals (for #TALER_planchet_to_coin) + * @param[out] c_hash set to the hash of the public key of the coin (needed later) * @param[out] pd set to the planchet detail for TALER_MERCHANT_tip_pickup() and * other withdraw operations * @return #GNUNET_OK on success @@ -596,6 +590,7 @@ TALER_planchet_setup_random (struct TALER_PlanchetSecretsP *ps); int TALER_planchet_prepare (const struct TALER_DenominationPublicKey *dk, const struct TALER_PlanchetSecretsP *ps, + struct GNUNET_HashCode *c_hash, struct TALER_PlanchetDetail *pd); -- cgit v1.2.3