summaryrefslogtreecommitdiff
path: root/src/include/taler_json_lib.h
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2022-06-27 10:10:51 +0200
committerÖzgür Kesim <oec-taler@kesim.org>2022-06-27 10:10:51 +0200
commita6544069f98fdbfce4ac215dd5f0ee0660469c2c (patch)
treed076bdb636acca8fb5f587c0971ed176cf1776f3 /src/include/taler_json_lib.h
parenta55fc45126b13de56a76a44f629a73b1eb003408 (diff)
downloadexchange-a6544069f98fdbfce4ac215dd5f0ee0660469c2c.tar.gz
exchange-a6544069f98fdbfce4ac215dd5f0ee0660469c2c.tar.bz2
exchange-a6544069f98fdbfce4ac215dd5f0ee0660469c2c.zip
[new /keys response] added proper hash verification
- Running XOR of all SHA-512 hashes of each denomination's public key is compared against the "hash" value in the JSON blob. - Fixed a bug during creation of the running XOR.
Diffstat (limited to 'src/include/taler_json_lib.h')
-rw-r--r--src/include/taler_json_lib.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/include/taler_json_lib.h b/src/include/taler_json_lib.h
index f0b105e98..0b58b43d1 100644
--- a/src/include/taler_json_lib.h
+++ b/src/include/taler_json_lib.h
@@ -370,12 +370,17 @@ TALER_JSON_spec_amount_any_nbo (const char *name,
**/
struct TALER_DenominationGroup
{
- /* currency must be set prior to calling TALER_JSON_spec_denomination_group */
- const char *currency;
enum TALER_DenominationCipher cipher;
struct TALER_Amount value;
struct TALER_DenomFeeSet fees;
struct TALER_AgeMask age_mask;
+
+ // currency must be set prior to calling TALER_JSON_spec_denomination_group
+ const char *currency;
+
+ // hash is/should be the XOR of all SHA-512 hashes of the public keys in this
+ // group
+ struct GNUNET_HashCode hash;
};
/**