From a6544069f98fdbfce4ac215dd5f0ee0660469c2c Mon Sep 17 00:00:00 2001 From: Özgür Kesim Date: Mon, 27 Jun 2022 10:10:51 +0200 Subject: [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. --- src/include/taler_json_lib.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/include/taler_json_lib.h') diff --git a/src/include/taler_json_lib.h b/src/include/taler_json_lib.h index f0b105e9..0b58b43d 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; }; /** -- cgit v1.2.3