summaryrefslogtreecommitdiff
path: root/src/util/test_crypto.c
diff options
context:
space:
mode:
authorGian Demarmels <gian@demarmels.org>2021-12-27 16:21:26 +0100
committerGian Demarmels <gian@demarmels.org>2022-02-04 15:33:09 +0100
commitca247f6f5821415b8c3437916e473785d6fd6403 (patch)
tree68327412c22cfe2a6ec387d45b8d0e2d5f841b88 /src/util/test_crypto.c
parent3225566c93eceb52078fbe13fc301722f349b2c0 (diff)
downloadexchange-ca247f6f5821415b8c3437916e473785d6fd6403.tar.gz
exchange-ca247f6f5821415b8c3437916e473785d6fd6403.tar.bz2
exchange-ca247f6f5821415b8c3437916e473785d6fd6403.zip
fixed CS signatures and cleanup/refactoring
Diffstat (limited to 'src/util/test_crypto.c')
-rw-r--r--src/util/test_crypto.c24
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;