diff options
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 |
commit | a6544069f98fdbfce4ac215dd5f0ee0660469c2c (patch) | |
tree | d076bdb636acca8fb5f587c0971ed176cf1776f3 /src/json | |
parent | a55fc45126b13de56a76a44f629a73b1eb003408 (diff) |
[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')
-rw-r--r-- | src/json/json_helper.c | 2 |
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; |