From 3eae999efc0cb923aebd2bf7214c5f4093217d4f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 31 Oct 2021 17:56:56 +0100 Subject: distinguish between blind and non-blind denomination signatures --- src/include/taler_json_lib.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (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 e381a7a10..26df1f113 100644 --- a/src/include/taler_json_lib.h +++ b/src/include/taler_json_lib.h @@ -158,6 +158,21 @@ TALER_JSON_pack_denom_sig ( const struct TALER_DenominationSignature *sig); +/** + * Generate packer instruction for a JSON field of type + * blinded denomination signature (that needs to be + * unblinded before it becomes valid). + * + * @param name name of the field to add to the object + * @param sig signature + * @return json pack specification + */ +struct GNUNET_JSON_PackSpec +TALER_JSON_pack_blinded_denom_sig ( + const char *name, + const struct TALER_BlindedDenominationSignature *sig); + + /** * Generate packer instruction for a JSON field of type * amount. @@ -327,6 +342,20 @@ TALER_JSON_spec_denom_sig (const char *field, struct TALER_DenominationSignature *sig); +/** + * Generate line in parser specification for a + * blinded denomination signature. + * + * @param field name of the field + * @param sig the blinded signature to initialize + * @return corresponding field spec + */ +struct GNUNET_JSON_Specification +TALER_JSON_spec_blinded_denom_sig ( + const char *field, + struct TALER_BlindedDenominationSignature *sig); + + /** * The expected field stores a possibly internationalized string. * Internationalization means that there is another field "$name_i18n" -- cgit v1.2.3