summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-02-08 09:58:22 +0100
committerChristian Grothoff <christian@grothoff.org>2022-02-08 09:58:22 +0100
commit8cbe16a2203d581ad2bdfcd7240653d1ee416634 (patch)
treede88ac97f6e2b9593c697405766bf87421ddca6a /src/util
parent133cf76f0d193e8226e53690b62de74e6b0f68d0 (diff)
downloadexchange-8cbe16a2203d581ad2bdfcd7240653d1ee416634.tar.gz
exchange-8cbe16a2203d581ad2bdfcd7240653d1ee416634.tar.bz2
exchange-8cbe16a2203d581ad2bdfcd7240653d1ee416634.zip
fix refresh/link tests
Diffstat (limited to 'src/util')
-rw-r--r--src/util/wallet_signatures.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/util/wallet_signatures.c b/src/util/wallet_signatures.c
index bc4903e0e..669ea6dd5 100644
--- a/src/util/wallet_signatures.c
+++ b/src/util/wallet_signatures.c
@@ -107,9 +107,7 @@ TALER_wallet_deposit_verify (
void
TALER_wallet_link_sign (const struct TALER_DenominationHash *h_denom_pub,
const struct TALER_TransferPublicKeyP *transfer_pub,
- // FIXME: consider passing hash!
- const void *coin_ev,
- size_t coin_ev_size,
+ const struct TALER_BlindedCoinHash *bch,
const struct TALER_CoinSpendPrivateKeyP *old_coin_priv,
struct TALER_CoinSpendSignatureP *coin_sig)
{
@@ -117,12 +115,10 @@ TALER_wallet_link_sign (const struct TALER_DenominationHash *h_denom_pub,
.purpose.size = htonl (sizeof (ldp)),
.purpose.purpose = htonl (TALER_SIGNATURE_WALLET_COIN_LINK),
.h_denom_pub = *h_denom_pub,
- .transfer_pub = *transfer_pub
+ .transfer_pub = *transfer_pub,
+ .coin_envelope_hash = *bch
};
- GNUNET_CRYPTO_hash (coin_ev,
- coin_ev_size,
- &ldp.coin_envelope_hash.hash);
GNUNET_CRYPTO_eddsa_sign (&old_coin_priv->eddsa_priv,
&ldp,
&coin_sig->eddsa_signature);