gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-exchange] 02/04: expose blinding keys in trait of re


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] 02/04: expose blinding keys in trait of refresh reveal command (preparation for #5777)
Date: Sun, 21 Jul 2019 20:15:21 +0200

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

grothoff pushed a commit to branch master
in repository exchange.

commit bafe0c772a7b93934ff2d3797dcd4d9993764d16
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun Jul 21 12:23:44 2019 +0200

    expose blinding keys in trait of refresh reveal command (preparation for 
#5777)
---
 src/lib/testing_api_cmd_refresh.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/src/lib/testing_api_cmd_refresh.c 
b/src/lib/testing_api_cmd_refresh.c
index 71f3833f..2bbf189b 100644
--- a/src/lib/testing_api_cmd_refresh.c
+++ b/src/lib/testing_api_cmd_refresh.c
@@ -1183,7 +1183,7 @@ refresh_reveal_traits (void *cls,
 {
   struct RefreshRevealState *rrs = cls;
   unsigned int num_coins = rrs->num_fresh_coins;
-#define NUM_TRAITS ((num_coins * 3) + 3)
+#define NUM_TRAITS ((num_coins * 4) + 3)
   struct TALER_TESTING_Trait traits[NUM_TRAITS];
 
   /* Making coin privs traits */
@@ -1202,26 +1202,22 @@ refresh_reveal_traits (void *cls,
     traits[(num_coins * 2) + i]
       = TALER_TESTING_make_trait_denom_sig
         (i, &rrs->fresh_coins[i].sig);
-#if 0
-  /* FIXME: need *some* trait for #5777 here, but we don't have
-     the blinding keys at hand. So we need to GET them! */
   /* blinding key traits */
   for (unsigned int i=0; i<num_coins; i++)
     traits[(num_coins * 3) + i]
       = TALER_TESTING_make_trait_blinding_key (i,
                                                
&rrs->fresh_coins[i].blinding_key),
-#endif
 
   /* number of fresh coins */
-  traits[(num_coins * 3)] = TALER_TESTING_make_trait_uint
+  traits[(num_coins * 4)] = TALER_TESTING_make_trait_uint
     (0, &rrs->num_fresh_coins);
 
   /* whole array of fresh coins */
-  traits[(num_coins * 3) + 1]
+  traits[(num_coins * 4) + 1]
     = TALER_TESTING_make_trait_fresh_coins (0, rrs->fresh_coins),
 
   /* end of traits */
-  traits[(num_coins * 3) + 2] = TALER_TESTING_trait_end ();
+  traits[(num_coins * 4) + 2] = TALER_TESTING_trait_end ();
 
   return TALER_TESTING_get_trait (traits,
                                   ret,

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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