exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 3ed39955b60b75e93652ebf233f3f73ddc5d145d
parent 031e365814edd8bde4e4216c83f435a6915a06ab
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon,  7 Feb 2022 10:58:23 +0100

-fix test_crypto ftbfs

Diffstat:
Msrc/util/test_crypto.c | 24++++++++++++++++++++----
1 file changed, 20 insertions(+), 4 deletions(-)

diff --git a/src/util/test_crypto.c b/src/util/test_crypto.c @@ -42,6 +42,10 @@ test_high_level (void) union TALER_DenominationBlindingKeyP bks2; struct TALER_CoinSpendPrivateKeyP coin_priv1; struct TALER_CoinSpendPrivateKeyP coin_priv2; + struct TALER_PlanchetSecretsP ps1; + struct TALER_PlanchetSecretsP ps2; + struct TALER_ExchangeWithdrawValues alg1; + struct TALER_ExchangeWithdrawValues alg2; GNUNET_CRYPTO_eddsa_key_create (&coin_priv.eddsa_priv); GNUNET_CRYPTO_eddsa_key_get_public (&coin_priv.eddsa_priv, @@ -66,12 +70,24 @@ test_high_level (void) &secret2)); TALER_planchet_setup_refresh (&secret, 0, - &coin_priv1, - &bks1); + &ps1); + alg1.cipher = TALER_DENOMINATION_RSA; + TALER_planchet_setup_coin_priv (&ps1, + &alg1, + &coin_priv1); + TALER_planchet_blinding_secret_create (&ps1, + &alg1, + &bks1); + alg2.cipher = TALER_DENOMINATION_RSA; TALER_planchet_setup_refresh (&secret, 1, - &coin_priv2, - &bks2); + &ps2); + TALER_planchet_setup_coin_priv (&ps1, + &alg2, + &coin_priv2); + TALER_planchet_blinding_secret_create (&ps2, + &alg2, + &bks2); GNUNET_assert (0 != GNUNET_memcmp (&coin_priv1, &coin_priv2));