From 7c510388b9d789c35fc05bead7677b3de52a318e Mon Sep 17 00:00:00 2001 From: Özgür Kesim Date: Wed, 10 Nov 2021 17:25:11 +0100 Subject: age restriction progress 2/n MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Özgür Kesim --- src/lib/exchange_api_deposit.c | 5 +++-- src/lib/exchange_api_refreshes_reveal.c | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/exchange_api_deposit.c b/src/lib/exchange_api_deposit.c index e857c8ea1..39397425a 100644 --- a/src/lib/exchange_api_deposit.c +++ b/src/lib/exchange_api_deposit.c @@ -462,9 +462,9 @@ handle_deposit_finished (void *cls, * @param h_wire hash of the merchant’s account details * @param h_contract_terms hash of the contact of the merchant with the customer (further details are never disclosed to the exchange) * @param coin_pub coin’s public key + * @param denom_sig exchange’s unblinded signature of the coin * @param denom_pub denomination key with which the coin is signed * @param denom_pub_hash hash of @a denom_pub - * @param denom_sig exchange’s unblinded signature of the coin * @param timestamp timestamp when the deposit was finalized * @param merchant_pub the public key of the merchant (used to identify the merchant for refund requests) * @param refund_deadline date until which the merchant can issue a refund to the customer via the exchange (can be zero if refunds are not allowed) @@ -512,7 +512,8 @@ verify_signatures (const struct TALER_EXCHANGE_DenomPublicKey *dki, struct TALER_CoinPublicInfo coin_info = { .coin_pub = *coin_pub, .denom_pub_hash = *denom_pub_hash, - .denom_sig = *denom_sig + .denom_sig = *denom_sig, + .age_commitment_hash = coin_pub->age_commitment_hash }; if (GNUNET_YES != diff --git a/src/lib/exchange_api_refreshes_reveal.c b/src/lib/exchange_api_refreshes_reveal.c index c275e0a4d..6e679d23d 100644 --- a/src/lib/exchange_api_refreshes_reveal.c +++ b/src/lib/exchange_api_refreshes_reveal.c @@ -167,6 +167,7 @@ refresh_reveal_ok (struct TALER_EXCHANGE_RefreshesRevealHandle *rrh, GNUNET_CRYPTO_eddsa_key_get_public (&fc->coin_priv.eddsa_priv, &coin_pub.eddsa_pub); TALER_coin_pub_hash (&coin_pub, + /* FIXME-Oec: Age commitment hash */ &coin_hash); if (GNUNET_OK != TALER_planchet_to_coin (pk, -- cgit v1.2.3