diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-17 19:54:16 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-17 19:54:16 +0100 |
commit | 11c52837112421af755bc7bc21569011274909ad (patch) | |
tree | 68c44a348c9189daad2d0b9f4c72468514f257ca /src/lib/exchange_api_common.c | |
parent | 33bd1ca2bbd61019b224c9de8ac48126d0a57ab0 (diff) | |
download | exchange-11c52837112421af755bc7bc21569011274909ad.tar.xz |
prepare API to enable verification of fees in coin history check
Diffstat (limited to 'src/lib/exchange_api_common.c')
-rw-r--r-- | src/lib/exchange_api_common.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/exchange_api_common.c b/src/lib/exchange_api_common.c index c7e76985d..3860a6613 100644 --- a/src/lib/exchange_api_common.c +++ b/src/lib/exchange_api_common.c @@ -29,6 +29,7 @@ /** * Verify a coins transaction history as returned by the exchange. * + * @param dk fee structure for the coin, NULL to skip verifying fees * @param currency expected currency for the coin * @param coin_pub public key of the coin * @param history history of the coin in json encoding @@ -36,7 +37,9 @@ * @return #GNUNET_OK if @a history is valid, #GNUNET_SYSERR if not */ int -TALER_EXCHANGE_verify_coin_history (const char *currency, +TALER_EXCHANGE_verify_coin_history (const struct + TALER_EXCHANGE_DenomPublicKey *dk, + const char *currency, const struct TALER_CoinSpendPublicKeyP *coin_pub, json_t *history, |