crypto worker: fix refresh planchet setup
This commit is contained in:
parent
a00cebcced
commit
ec4c531cc6
@ -144,6 +144,7 @@ run (void *cls,
|
|||||||
struct TALER_Amount value;
|
struct TALER_Amount value;
|
||||||
struct TALER_ReservePublicKeyP reserve_pub;
|
struct TALER_ReservePublicKeyP reserve_pub;
|
||||||
struct TALER_ReservePublicKeyP reserve_priv;
|
struct TALER_ReservePublicKeyP reserve_priv;
|
||||||
|
struct TALER_TransferSecretP transfer_secret;
|
||||||
uint32_t coin_index;
|
uint32_t coin_index;
|
||||||
json_t *resp;
|
json_t *resp;
|
||||||
struct GNUNET_JSON_Specification eddsa_verify_spec[] = {
|
struct GNUNET_JSON_Specification eddsa_verify_spec[] = {
|
||||||
@ -159,6 +160,8 @@ run (void *cls,
|
|||||||
&reserve_priv),
|
&reserve_priv),
|
||||||
GNUNET_JSON_spec_uint32 ("coin_index",
|
GNUNET_JSON_spec_uint32 ("coin_index",
|
||||||
&coin_index),
|
&coin_index),
|
||||||
|
GNUNET_JSON_spec_fixed_auto ("transfer_secret",
|
||||||
|
&transfer_secret),
|
||||||
GNUNET_JSON_spec_end ()
|
GNUNET_JSON_spec_end ()
|
||||||
};
|
};
|
||||||
struct TALER_CoinSpendPublicKeyP coin_pub;
|
struct TALER_CoinSpendPublicKeyP coin_pub;
|
||||||
@ -175,11 +178,9 @@ run (void *cls,
|
|||||||
global_ret = 1;
|
global_ret = 1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#if FIXME_FLORIAN
|
|
||||||
TALER_planchet_setup_refresh (&transfer_secret,
|
TALER_planchet_setup_refresh (&transfer_secret,
|
||||||
coin_num_salt,
|
coin_index,
|
||||||
&ps);
|
&ps);
|
||||||
#endif
|
|
||||||
GNUNET_CRYPTO_eddsa_key_get_public (&ps.coin_priv.eddsa_priv,
|
GNUNET_CRYPTO_eddsa_key_get_public (&ps.coin_priv.eddsa_priv,
|
||||||
&coin_pub.eddsa_pub);
|
&coin_pub.eddsa_pub);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user