From b84fb618c3c0f7492f609949f5202c75882d7b68 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 7 Feb 2022 13:41:55 +0100 Subject: fix refreshes_reveal FTBFS --- src/include/taler_crypto_lib.h | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'src/include/taler_crypto_lib.h') diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h index 189d4b06..dbf390ea 100644 --- a/src/include/taler_crypto_lib.h +++ b/src/include/taler_crypto_lib.h @@ -1589,6 +1589,18 @@ TALER_planchet_to_coin ( struct TALER_FreshCoin *coin); +/** + * Add the hash of the @a bp (in some canonicalized form) + * to the @a hash_context. + * + * @param bp blinded planchet to hash + * @param[in,out] hash_context hash context to use + */ +void +TALER_blinded_planchet_hash (const struct TALER_BlindedPlanchet *bp, + struct GNUNET_HashContext *hash_context); + + /** * Given the coin and the transfer private keys, compute the * transfer secret. (Technically, we only need one of the two @@ -1649,14 +1661,9 @@ struct TALER_RefreshCoinData const struct TALER_DenominationPublicKey *dk; /** - * The envelope with the blinded coin. + * The blinded planchet (details depend on cipher). */ - void *coin_ev; - - /** - * Number of bytes in @a coin_ev - */ - size_t coin_ev_size; + struct TALER_BlindedPlanchet blinded_planchet; }; -- cgit v1.2.3