diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-11-06 17:26:11 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-11-06 17:26:11 +0100 |
commit | 0b370a68148507016c6e707b01918350887887f7 (patch) | |
tree | 4ca354a308ef8219d277e4e11bf383c3ec925ced /src/util | |
parent | 8175fdfa0f47e74e239190e809eff4dda5565a76 (diff) |
add extension hashing
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/wallet_signatures.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/util/wallet_signatures.c b/src/util/wallet_signatures.c index f6aa144d6..3f9e297f6 100644 --- a/src/util/wallet_signatures.c +++ b/src/util/wallet_signatures.c @@ -48,13 +48,12 @@ TALER_wallet_deposit_sign ( .merchant = *merchant_pub }; - // FIXME: sign also over h_extensions! + if (NULL != h_extensions) + dr.h_extensions = *h_extensions; GNUNET_assert (GNUNET_OK == GNUNET_TIME_round_abs (&wallet_timestamp)); GNUNET_assert (GNUNET_OK == GNUNET_TIME_round_abs (&refund_deadline)); - GNUNET_CRYPTO_eddsa_key_get_public (&coin_priv->eddsa_priv, - &dr.coin_pub.eddsa_pub); TALER_amount_hton (&dr.amount_with_fee, amount); TALER_amount_hton (&dr.deposit_fee, @@ -87,10 +86,11 @@ TALER_wallet_deposit_verify ( .h_denom_pub = *h_denom_pub, .wallet_timestamp = GNUNET_TIME_absolute_hton (wallet_timestamp), .refund_deadline = GNUNET_TIME_absolute_hton (refund_deadline), - .merchant = *merchant_pub, - .coin_pub = *coin_pub + .merchant = *merchant_pub }; + if (NULL != h_extensions) + dr.h_extensions = *h_extensions; TALER_amount_hton (&dr.amount_with_fee, amount); TALER_amount_hton (&dr.deposit_fee, |