This commit is contained in:
Florian Dold 2020-01-16 08:50:40 +01:00
parent f676be5c53
commit 2e6d284e03
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
2 changed files with 0 additions and 45 deletions

View File

@ -154,19 +154,6 @@ TALER_JSON_merchant_wire_signature_hash (const json_t *wire_s,
struct GNUNET_HashCode *hc);
/**
* 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.
*

View File

@ -24,38 +24,6 @@
#include "taler_json_lib.h"
/**
* 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_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.