diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/exchange_api_refresh_common.c | 7 | ||||
-rw-r--r-- | src/lib/exchange_api_refreshes_reveal.c | 17 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/exchange_api_refresh_common.c b/src/lib/exchange_api_refresh_common.c index 0f0032c4c..7d8f4c920 100644 --- a/src/lib/exchange_api_refresh_common.c +++ b/src/lib/exchange_api_refresh_common.c @@ -114,9 +114,10 @@ TALER_EXCHANGE_get_melt_data_ ( /* build up coins */ for (unsigned int i = 0; i<TALER_CNC_KAPPA; i++) { - // FIXME: derive! - GNUNET_CRYPTO_ecdhe_key_create ( - &md->melted_coin.transfer_priv[i].ecdhe_priv); + TALER_planchet_secret_to_transfer_priv ( + ps, + i, + &md->melted_coin.transfer_priv[i]); GNUNET_CRYPTO_ecdhe_key_get_public ( &md->melted_coin.transfer_priv[i].ecdhe_priv, &rce[i].transfer_pub.ecdhe_pub); diff --git a/src/lib/exchange_api_refreshes_reveal.c b/src/lib/exchange_api_refreshes_reveal.c index f936e240b..38ca93310 100644 --- a/src/lib/exchange_api_refreshes_reveal.c +++ b/src/lib/exchange_api_refreshes_reveal.c @@ -408,15 +408,14 @@ TALER_EXCHANGE_refreshes_reveal ( TALER_EXCHANGE_free_melt_data_ (&md); return NULL; } - GNUNET_assert (0 == - json_array_append_new (coin_evs, - GNUNET_JSON_from_data ( - pd.blinded_planchet.details. - rsa_blinded_planchet.blinded_msg, - pd. - blinded_planchet.details. - rsa_blinded_planchet. - blinded_msg_size))); + GNUNET_assert ( + 0 == + json_array_append_new ( + coin_evs, + GNUNET_JSON_PACK ( + TALER_JSON_pack_blinded_planchet ( + NULL, + &pd.blinded_planchet)))); { struct TALER_CoinSpendSignatureP link_sig; |