summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-01-16 08:50:40 +0100
committerFlorian Dold <florian.dold@gmail.com>2020-01-16 08:53:03 +0100
commit2e6d284e039acdc2fef37ca5b781f1ecee6a548d (patch)
tree61a4b557dfa9419482a69ba6414bef562f2c7de0 /src
parentf676be5c5387d7d712a6fc14d6baf1798c777eaa (diff)
downloadexchange-2e6d284e039acdc2fef37ca5b781f1ecee6a548d.tar.gz
exchange-2e6d284e039acdc2fef37ca5b781f1ecee6a548d.tar.bz2
exchange-2e6d284e039acdc2fef37ca5b781f1ecee6a548d.zip
DCE
Diffstat (limited to 'src')
-rw-r--r--src/include/taler_json_lib.h13
-rw-r--r--src/json/json_wire.c32
2 files changed, 0 insertions, 45 deletions
diff --git a/src/include/taler_json_lib.h b/src/include/taler_json_lib.h
index 6adb76b24..16863803e 100644
--- a/src/include/taler_json_lib.h
+++ b/src/include/taler_json_lib.h
@@ -155,19 +155,6 @@ TALER_JSON_merchant_wire_signature_hash (const json_t *wire_s,
/**
- * Compute the hash of the given wire details. The resulting
- * hash is what is signed by the master public key.
- *
- * @param wire_s wire details to hash
- * @param hc[out] set to the hash
- * @return #GNUNET_OK on success, #GNUNET_SYSERR if @a wire_s is malformed
- */
-int
-TALER_JSON_exchange_wire_signature_hash (const json_t *wire_s,
- struct GNUNET_HashCode *hc);
-
-
-/**
* Check the signature in @a wire_s.
*
* @param wire_s signed wire information of an exchange
diff --git a/src/json/json_wire.c b/src/json/json_wire.c
index 06d39118a..5052f458f 100644
--- a/src/json/json_wire.c
+++ b/src/json/json_wire.c
@@ -33,38 +33,6 @@
* @return #GNUNET_OK on success, #GNUNET_SYSERR if @a wire_s is malformed
*/
int
-TALER_JSON_exchange_wire_signature_hash (const json_t *wire_s,
- struct GNUNET_HashCode *hc)
-{
- const char *payto_url;
- struct GNUNET_JSON_Specification spec[] = {
- GNUNET_JSON_spec_string ("url", &payto_url),
- GNUNET_JSON_spec_end ()
- };
-
- if (GNUNET_OK !=
- GNUNET_JSON_parse (wire_s,
- spec,
- NULL, NULL))
- {
- GNUNET_break_op (0);
- return GNUNET_SYSERR;
- }
- TALER_exchange_wire_signature_hash (payto_url,
- hc);
- return GNUNET_OK;
-}
-
-
-/**
- * Compute the hash of the given wire details. The resulting
- * hash is what is put into the contract.
- *
- * @param wire_s wire details to hash
- * @param hc[out] set to the hash
- * @return #GNUNET_OK on success, #GNUNET_SYSERR if @a wire_s is malformed
- */
-int
TALER_JSON_merchant_wire_signature_hash (const json_t *wire_s,
struct GNUNET_HashCode *hc)
{