diff options
Diffstat (limited to 'src/util/test_crypto.c')
-rw-r--r-- | src/util/test_crypto.c | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/src/util/test_crypto.c b/src/util/test_crypto.c index 64958cfc1..760ec0fa3 100644 --- a/src/util/test_crypto.c +++ b/src/util/test_crypto.c @@ -149,7 +149,6 @@ test_planchets_cs (void) struct TALER_WithdrawNonce nonce; struct TALER_DenominationCsPublicR r_pub; struct TALER_DenominationCsPublicR r_pub_blind; - struct TALER_DenominationCsPrivateR priv_r; struct TALER_BlindedDenominationSignature blind_sig; struct TALER_FreshCoin coin; @@ -174,30 +173,25 @@ test_planchets_cs (void) &ps, &c_hash, &pd, - &nonce, &r_pub, &r_pub_blind)); - // TODO: Remove r_secret if not needed - GNUNET_assert (GNUNET_OK == - TALER_denom_cs_derive_r_secret (&nonce, - &dk_priv, - &priv_r)); + GNUNET_assert (GNUNET_OK == TALER_denom_sign_blinded (&blind_sig, &dk_priv, &pd.blinded_planchet, &nonce)); - // GNUNET_assert (GNUNET_OK == - // TALER_planchet_to_coin (&dk_pub, - // &blind_sig, - // &ps, - // &c_hash, - // &coin, - // &r_pub_blind)); + GNUNET_assert (GNUNET_OK == + TALER_planchet_to_coin (&dk_pub, + &blind_sig, + &ps, + &c_hash, + &coin, + &r_pub_blind)); TALER_blinded_denom_sig_free (&blind_sig); - // TALER_denom_sig_free (&coin.sig); + TALER_denom_sig_free (&coin.sig); TALER_denom_priv_free (&dk_priv); TALER_denom_pub_free (&dk_pub); return 0; |