diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-12 16:44:28 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-12 16:44:28 +0200 |
commit | 00350bc228af8f79df56df13aa10e5f86de5a5a5 (patch) | |
tree | dedbcc779a7bc63fb1152ff350d6f59a7c4fcd05 /src/include | |
parent | d28f18f2403d623d29ff4c9e69d3b99f7d4208b0 (diff) |
remove c_hash from planchet detail where it does not logically belong
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_crypto_lib.h | 9 |
1 files changed, 2 insertions, 7 deletions
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 @@ -446,13 +446,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! */ void *coin_ev; @@ -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); |