summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_refreshes_reveal.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-11-14 06:19:35 +0100
committerChristian Grothoff <christian@grothoff.org>2022-11-14 06:19:35 +0100
commit8bfc6583e799d8f7d0e55262b593183daed7f4fe (patch)
tree40226cdf86d5ceee7978c846250555d6eaa7b327 /src/exchange/taler-exchange-httpd_refreshes_reveal.c
parent053faa252c2afed8ecbb65bdd6fe8ec6f9ad9ef9 (diff)
downloadexchange-8bfc6583e799d8f7d0e55262b593183daed7f4fe.tar.gz
exchange-8bfc6583e799d8f7d0e55262b593183daed7f4fe.tar.bz2
exchange-8bfc6583e799d8f7d0e55262b593183daed7f4fe.zip
more refactoring towards #7272
Diffstat (limited to 'src/exchange/taler-exchange-httpd_refreshes_reveal.c')
-rw-r--r--src/exchange/taler-exchange-httpd_refreshes_reveal.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/exchange/taler-exchange-httpd_refreshes_reveal.c b/src/exchange/taler-exchange-httpd_refreshes_reveal.c
index a0c8a6667..56848d581 100644
--- a/src/exchange/taler-exchange-httpd_refreshes_reveal.c
+++ b/src/exchange/taler-exchange-httpd_refreshes_reveal.c
@@ -215,10 +215,14 @@ check_commitment (struct RevealContext *rctx,
case TALER_DENOMINATION_CS:
{
enum TALER_ErrorCode ec;
-
- ec = TEH_keys_denomination_cs_r_pub_melt (
- &rctx->rrcs[j].h_denom_pub,
- &nonces[aoff],
+ const struct TEH_CsDeriveData cdd = {
+ .h_denom_pub = &rctx->rrcs[j].h_denom_pub,
+ .nonce = &nonces[aoff]
+ };
+
+ ec = TEH_keys_denomination_cs_r_pub (
+ &cdd,
+ true,
&alg_values->details.cs_values);
if (TALER_EC_NONE != ec)
{
@@ -756,8 +760,9 @@ clean_age:
// FIXME #7272: replace with a batch call that
// passes all coins in once go!
- ec = TEH_keys_denomination_sign_melt (
+ ec = TEH_keys_denomination_sign (
&csd,
+ true,
&rrcs[i].coin_sig);
if (TALER_EC_NONE != ec)
{