gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] 129/130: towards merging with master


From: gnunet
Subject: [taler-exchange] 129/130: towards merging with master
Date: Wed, 17 Nov 2021 12:26:17 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

commit 16a8b2f6119a644a70f8b9885406fe4e9e2e1b46
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Nov 17 11:30:33 2021 +0100

    towards merging with master
---
 src/util/taler-crypto-worker.c | 40 +++++++++++++++++++++++++---------------
 1 file changed, 25 insertions(+), 15 deletions(-)

diff --git a/src/util/taler-crypto-worker.c b/src/util/taler-crypto-worker.c
index e4480978..6e145526 100644
--- a/src/util/taler-crypto-worker.c
+++ b/src/util/taler-crypto-worker.c
@@ -109,7 +109,7 @@ run (void *cls,
         GNUNET_JSON_spec_fixed_auto ("sig",
                                      &sig),
         GNUNET_JSON_spec_varsize ("msg",
-                                  &msg,
+                                  (void **) &msg,
                                   &msg_size),
         GNUNET_JSON_spec_end ()
       };
@@ -148,19 +148,28 @@ run (void *cls,
       uint32_t coin_index;
       json_t *resp;
       struct GNUNET_JSON_Specification eddsa_verify_spec[] = {
-        GNUNET_JSON_spec_rsa_public_key ("denom_pub",
-                                         &denom_pub.rsa_public_key),
-        TALER_JSON_spec_amount_any ("fee_withdraw", &fee_withdraw),
-        TALER_JSON_spec_amount_any ("value", &value),
-        GNUNET_JSON_spec_fixed_auto ("reserve_pub", &reserve_pub),
-        GNUNET_JSON_spec_fixed_auto ("reserve_priv", &reserve_priv),
-        GNUNET_JSON_spec_uint32 ("coin_index", &coin_index),
+        TALER_JSON_spec_denom_pub ("denom_pub",
+                                   &denom_pub),
+        TALER_JSON_spec_amount_any ("fee_withdraw",
+                                    &fee_withdraw),
+        TALER_JSON_spec_amount_any ("value",
+                                    &value),
+        GNUNET_JSON_spec_fixed_auto ("reserve_pub",
+                                     &reserve_pub),
+        GNUNET_JSON_spec_fixed_auto ("reserve_priv",
+                                     &reserve_priv),
+        GNUNET_JSON_spec_uint32 ("coin_index",
+                                 &coin_index),
         GNUNET_JSON_spec_end ()
       };
-      if (GNUNET_OK != GNUNET_JSON_parse (args,
-                                          eddsa_verify_spec,
-                                          NULL,
-                                          NULL))
+      struct TALER_CoinSpendPublicKeyP coin_pub;
+      struct TALER_PlanchetSecretsP ps;
+
+      if (GNUNET_OK !=
+          GNUNET_JSON_parse (args,
+                             eddsa_verify_spec,
+                             NULL,
+                             NULL))
       {
         GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
                     "malformed op args\n");
@@ -168,9 +177,10 @@ run (void *cls,
         return;
       }
       TALER_planchet_setup_refresh (&transfer_secret,
-                                    coin_num_salt, &ps);
+                                    coin_num_salt,
+                                    &ps);
       GNUNET_CRYPTO_eddsa_key_get_public (&ps.coin_priv.eddsa_priv,
-                                          &coin_pub);
+                                          &coin_pub.eddsa_pub);
 
       resp = GNUNET_JSON_PACK (
         GNUNET_JSON_pack_data_auto ("coin_priv", &ps.coin_priv),
@@ -211,7 +221,7 @@ run (void *cls,
       TALER_planchet_setup_refresh (&transfer_secret,
                                     coin_num_salt, &ps);
       GNUNET_CRYPTO_eddsa_key_get_public (&ps.coin_priv.eddsa_priv,
-                                          &coin_pub);
+                                          &coin_pub.eddsa_pub);
 
       resp = GNUNET_JSON_PACK (
         GNUNET_JSON_pack_data_auto ("coin_priv", &ps.coin_priv),

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]