From 2f2930f1ba0f1708fc4455c66173fd61188a3369 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 31 Oct 2017 14:02:54 +0100 Subject: major API refactoring, adding planchet generation and coin extraction APIs to the Taler crypto library, thereby simplifying code in withdraw, refresh, tipping, payback and testcases; slight API incompatibilities to previous versions are introduced --- src/benchmark/taler-exchange-benchmark.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/benchmark') diff --git a/src/benchmark/taler-exchange-benchmark.c b/src/benchmark/taler-exchange-benchmark.c index 93afb683b..a90773ba0 100644 --- a/src/benchmark/taler-exchange-benchmark.c +++ b/src/benchmark/taler-exchange-benchmark.c @@ -981,6 +981,7 @@ withdraw_coin (struct Coin *coin) struct TALER_Amount left; const struct TALER_EXCHANGE_Keys *keys; struct Reserve *r; + struct TALER_PlanchetSecretsP ps; keys = TALER_EXCHANGE_get_keys (exchange); r = &reserves[coin->reserve_index]; @@ -996,12 +997,13 @@ withdraw_coin (struct Coin *coin) GNUNET_assert (NULL != (coin->pk = find_pk (keys, &amount))); if (warm >= WARM_THRESHOLD) num_withdraw++; + ps.coin_priv = coin->coin_priv; + ps.blinding_key = blinding_key; coin->wsh = TALER_EXCHANGE_reserve_withdraw (exchange, coin->pk, &r->reserve_priv, - &coin->coin_priv, - &blinding_key, + &ps, &reserve_withdraw_cb, coin); GNUNET_assert (GNUNET_SYSERR != -- cgit v1.2.3