diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-03-19 19:16:35 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-03-19 19:16:35 +0100 |
commit | 737e3f4bf67a2048381785328206c595bffe632a (patch) | |
tree | b9c0a93fc43d1e6cd5c0dbd14ff53d0ee2d29fee /src/include/taler_json_lib.h | |
parent | 3d5e096fa24a2d11873d7e09a0b994a00882325d (diff) |
refactor to eliminate duplicated JSON parsing logic (#4150)
Diffstat (limited to 'src/include/taler_json_lib.h')
-rw-r--r-- | src/include/taler_json_lib.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/include/taler_json_lib.h b/src/include/taler_json_lib.h index aee151b97..3dd661a91 100644 --- a/src/include/taler_json_lib.h +++ b/src/include/taler_json_lib.h @@ -58,6 +58,30 @@ TALER_JSON_spec_amount (const char *name, /** + * Generate line in parser specification for denomination public key. + * + * @param field name of the field + * @param[out] pk key to initialize + * @return corresponding field spec + */ +struct GNUNET_JSON_Specification +TALER_JSON_spec_denomination_public_key (const char *field, + struct TALER_DenominationPublicKey *pk); + + +/** + * Generate line in parser specification for denomination signature. + * + * @param field name of the field + * @param sig the signature to initialize + * @return corresponding field spec + */ +struct GNUNET_JSON_Specification +TALER_JSON_spec_denomination_signature (const char *field, + struct TALER_DenominationSignature *sig); + + +/** * Hash a JSON for binary signing. * * @param[in] json some JSON value to hash |