diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2022-03-22 02:33:51 +0100 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2022-03-22 02:33:51 +0100 |
commit | e200e860321abdff235863bd83e663ae57cf037a (patch) | |
tree | dd0c3429a3e0438fad970bfa2eee303b5c3c9ec5 /src/exchange/taler-exchange-httpd_kyc-wallet.c | |
parent | bdc797a5830983e22b42bf8d97c25d80ad9f6346 (diff) | |
download | exchange-e200e860321abdff235863bd83e663ae57cf037a.tar.gz exchange-e200e860321abdff235863bd83e663ae57cf037a.tar.bz2 exchange-e200e860321abdff235863bd83e663ae57cf037a.zip |
implement helper functions for p2p signatures, clean up existing signature logic
Diffstat (limited to 'src/exchange/taler-exchange-httpd_kyc-wallet.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_kyc-wallet.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/exchange/taler-exchange-httpd_kyc-wallet.c b/src/exchange/taler-exchange-httpd_kyc-wallet.c index 2f94d1a54..0d92efd3a 100644 --- a/src/exchange/taler-exchange-httpd_kyc-wallet.c +++ b/src/exchange/taler-exchange-httpd_kyc-wallet.c @@ -104,10 +104,6 @@ TEH_handler_kyc_wallet ( }; MHD_RESULT res; enum GNUNET_GenericReturnValue ret; - struct GNUNET_CRYPTO_EccSignaturePurpose purpose = { - .size = htonl (sizeof (purpose)), - .purpose = htonl (TALER_SIGNATURE_WALLET_ACCOUNT_SETUP) - }; (void) args; ret = TALER_MHD_parse_json_data (rc->connection, @@ -120,10 +116,8 @@ TEH_handler_kyc_wallet ( TEH_METRICS_num_verifications[TEH_MT_SIGNATURE_EDDSA]++; if (GNUNET_OK != - GNUNET_CRYPTO_eddsa_verify_ (TALER_SIGNATURE_WALLET_ACCOUNT_SETUP, - &purpose, - &reserve_sig.eddsa_signature, - &krc.reserve_pub.eddsa_pub)) + TALER_wallet_account_setup_verify (&krc.reserve_pub, + &reserve_sig)) { GNUNET_break_op (0); return TALER_MHD_reply_with_error ( |