summaryrefslogtreecommitdiff
path: root/src/json/json_helper.c
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/json/json_helper.c
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/json/json_helper.c')
-rw-r--r--src/json/json_helper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/json/json_helper.c b/src/json/json_helper.c
index 9752bb9f8..b29a49b3a 100644
--- a/src/json/json_helper.c
+++ b/src/json/json_helper.c
@@ -265,6 +265,8 @@ parse_denomination_group (void *cls,
GNUNET_JSON_spec_uint32 ("age_mask",
&group->age_mask.bits),
&age_mask_missing),
+ GNUNET_JSON_spec_fixed_auto ("hash",
+ &group->hash),
GNUNET_JSON_spec_end ()
};
const char *emsg;