From 5caa52aa4cf7eb4e59cef34195f61d088a28a622 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 21 Jun 2015 19:18:31 +0200 Subject: implementing /deposit JSON generation --- src/include/taler_json_lib.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/include') diff --git a/src/include/taler_json_lib.h b/src/include/taler_json_lib.h index 7c260ea81..5a13b9bca 100644 --- a/src/include/taler_json_lib.h +++ b/src/include/taler_json_lib.h @@ -152,6 +152,18 @@ struct GNUNET_CRYPTO_rsa_Signature * TALER_json_to_rsa_signature (json_t *json); +/** + * Hash a JSON for binary signing. + * + * @param[in] json some JSON value to hash + * @param[out] hc resulting hash code + * @return #GNUNET_OK on success, #GNUNET_SYSERR on error + */ +int +TALER_hash_json (json_t *json, + struct GNUNET_HashCode *hc); + + /** * Check if the given wire format JSON object is correctly formatted * -- cgit v1.2.3