summaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_kyc_wallet.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-02-12 12:20:12 +0100
committerChristian Grothoff <christian@grothoff.org>2022-02-12 12:20:12 +0100
commita0d9d59b73a35f3060914372a70fbcc57e66998f (patch)
tree83509667b5c231ffd14f3f6a7aa6d533668dfad3 /src/lib/exchange_api_kyc_wallet.c
parent88033aa15e198adc0b1ea466c5b000804147dc6d (diff)
downloadexchange-a0d9d59b73a35f3060914372a70fbcc57e66998f.tar.gz
exchange-a0d9d59b73a35f3060914372a70fbcc57e66998f.tar.bz2
exchange-a0d9d59b73a35f3060914372a70fbcc57e66998f.zip
-refactor to address FIXME
Diffstat (limited to 'src/lib/exchange_api_kyc_wallet.c')
-rw-r--r--src/lib/exchange_api_kyc_wallet.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/lib/exchange_api_kyc_wallet.c b/src/lib/exchange_api_kyc_wallet.c
index 4a41fd598..7a78ceb24 100644
--- a/src/lib/exchange_api_kyc_wallet.c
+++ b/src/lib/exchange_api_kyc_wallet.c
@@ -161,19 +161,11 @@ TALER_EXCHANGE_kyc_wallet (struct TALER_EXCHANGE_Handle *exchange,
struct GNUNET_CURL_Context *ctx;
struct TALER_ReservePublicKeyP reserve_pub;
struct TALER_ReserveSignatureP reserve_sig;
- struct GNUNET_CRYPTO_EccSignaturePurpose purpose = {
- .size = htonl (sizeof (purpose)),
- .purpose = htonl (TALER_SIGNATURE_WALLET_ACCOUNT_SETUP)
- };
- /* FIXME: move to util/wallet-signatures.c! */
GNUNET_CRYPTO_eddsa_key_get_public (&reserve_priv->eddsa_priv,
&reserve_pub.eddsa_pub);
-
- GNUNET_assert (GNUNET_OK ==
- GNUNET_CRYPTO_eddsa_sign_ (&reserve_priv->eddsa_priv,
- &purpose,
- &reserve_sig.eddsa_signature));
+ TALER_wallet_account_setup_sign (reserve_priv,
+ &reserve_sig);
req = GNUNET_JSON_PACK (
GNUNET_JSON_pack_data_auto ("reserve_pub",
&reserve_pub),