diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2021-11-10 17:25:11 +0100 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2021-11-10 17:27:49 +0100 |
commit | 7c510388b9d789c35fc05bead7677b3de52a318e (patch) | |
tree | 43750109ca78184551dff403c881aa7e205152f9 /src/lib | |
parent | 77bab625607514a628dfda101e55c7d57f6b623d (diff) |
age restriction progress 2/n
Signed-off-by: Özgür Kesim <oec-taler@kesim.org>
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/exchange_api_deposit.c | 5 | ||||
-rw-r--r-- | src/lib/exchange_api_refreshes_reveal.c | 1 |
2 files changed, 4 insertions, 2 deletions
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, |