summaryrefslogtreecommitdiff
path: root/src/util/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/json.c')
-rw-r--r--src/util/json.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/json.c b/src/util/json.c
index 38f459200..88d9cd0c9 100644
--- a/src/util/json.c
+++ b/src/util/json.c
@@ -104,6 +104,10 @@ TALER_JSON_from_eddsa_sig (const struct GNUNET_CRYPTO_EccSignaturePurpose *purpo
el = json_integer ((json_int_t) ntohl (purpose->purpose));
json_object_set_new (root, "purpose", el);
+ el = TALER_JSON_from_data (purpose,
+ ntohl (purpose->size));
+ json_object_set_new (root, "eddsa-val", el);
+
el = TALER_JSON_from_data (signature,
sizeof (struct GNUNET_CRYPTO_EddsaSignature));
json_object_set_new (root, "eddsa-sig", el);
@@ -134,6 +138,10 @@ TALER_JSON_from_ecdsa_sig (const struct GNUNET_CRYPTO_EccSignaturePurpose *purpo
el = json_integer ((json_int_t) ntohl (purpose->purpose));
json_object_set_new (root, "purpose", el);
+ el = TALER_JSON_from_data (purpose,
+ ntohl (purpose->size));
+ json_object_set_new (root, "ecdsa-val", el);
+
el = TALER_JSON_from_data (signature,
sizeof (struct GNUNET_CRYPTO_EddsaSignature));
json_object_set_new (root, "ecdsa-sig", el);