diff options
author | Gian Demarmels <gian@demarmels.org> | 2021-12-17 14:35:10 +0100 |
---|---|---|
committer | Gian Demarmels <gian@demarmels.org> | 2022-02-04 15:31:45 +0100 |
commit | f3fb7c29e69d38ee77d6214cf001f8e18fa00f2b (patch) | |
tree | fc24c4e9d6159f37601d2e6758e581ff56e29521 /src/exchangedb | |
parent | 0a459aeb13a733659266509e011ec4631a95a60f (diff) | |
download | exchange-f3fb7c29e69d38ee77d6214cf001f8e18fa00f2b.tar.xz |
added CS data structures, implemented CS keypair
Diffstat (limited to 'src/exchangedb')
-rw-r--r-- | src/exchangedb/test_exchangedb.c | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/src/exchangedb/test_exchangedb.c b/src/exchangedb/test_exchangedb.c index cca7c3f47..3306837d7 100644 --- a/src/exchangedb/test_exchangedb.c +++ b/src/exchangedb/test_exchangedb.c @@ -531,10 +531,8 @@ handle_link_data_cb (void *cls, break; } } - GNUNET_assert (found); - } -} - + //FIXME: + GNUNET_assert (GNUNET_NO != found); /** * Callback that should never be called. @@ -1469,7 +1467,7 @@ run (void *cls) struct TALER_CoinSpendPublicKeyP coin_pub; struct TALER_AgeHash age_hash; struct TALER_AgeHash *p_ah[2] = {NULL, &age_hash}; - + //FIXME: /* Call TALER_denom_blind()/TALER_denom_sign_blinded() twice, once without * age_hash, once with age_hash */ RND_BLK (&age_hash); @@ -1495,6 +1493,25 @@ run (void *cls) pd.coin_ev_size)); GNUNET_free (pd.coin_ev); } + RND_BLK (&coin_pub); + TALER_blinding_secret_create (&bks, TALER_DENOMINATION_RSA); + GNUNET_assert (GNUNET_OK == + TALER_denom_blind (&dkp->pub, + &bks, + NULL, /* FIXME-Oec */ + &coin_pub, + &c_hash, + &pd.blinded_planchet)); + TALER_coin_ev_hash ( + pd.blinded_planchet.details.rsa_blinded_planchet.blinded_msg, + pd.blinded_planchet.details.rsa_blinded_planchet. + blinded_msg_size, + &cbc.h_coin_envelope); + GNUNET_assert (GNUNET_OK == + TALER_denom_sign_blinded (&cbc.sig, + &dkp->priv, + &pd.blinded_planchet)); + GNUNET_free (pd.blinded_planchet.details.rsa_blinded_planchet.blinded_msg); } cbc.reserve_pub = reserve_pub; |