aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2021-10-25 18:02:27 +0200
committerChristian Grothoff <christian@grothoff.org>2021-10-27 09:23:13 +0200
commitf0951d34ddd525a04bcb9daabbc55bd1ced2575e (patch)
tree03158d889a603673197f6c4a92ca9acebc10e2ce /src/include
parentf7d08e8c2bbd6c5eaa73f339f551683c9d93ebeb (diff)
downloadexchange-f0951d34ddd525a04bcb9daabbc55bd1ced2575e.tar.xz
-fix more FTBFS
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_crypto_lib.h27
1 files changed, 26 insertions, 1 deletions
diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h
index 3507ebe5e..266ab7289 100644
--- a/src/include/taler_crypto_lib.h
+++ b/src/include/taler_crypto_lib.h
@@ -603,7 +603,7 @@ struct TALER_TrackTransferDetails
/**
* Hash of the proposal data.
*/
- struct GNUNET_HashCode h_contract_terms;
+ struct TALER_PrivateContractHash h_contract_terms;
/**
* Which coin was deposited?
@@ -728,6 +728,31 @@ TALER_test_coin_valid (const struct TALER_CoinPublicInfo *coin_public_info,
const struct TALER_DenominationPublicKey *denom_pub);
+/**
+ * Compute the hash of a blinded coin.
+ *
+ * @param coin_ev blinded coin
+ * @param coin_ev_size number of bytes in @a coin_ev
+ * @param[out] bch where to write the hash
+ */
+void
+TALER_coin_ev_hash (const void *coin_ev,
+ size_t coin_ev_size,
+ struct TALER_BlindedCoinHash *bch);
+
+
+/**
+ * Compute the hash of a coin.
+ * FIXME-Oec: add age restriction hash here!
+ *
+ * @param coin_pub public key of the coin
+ * @param[out] coin_h where to write the hash
+ */
+void
+TALER_coin_pub_hash (const struct TALER_CoinSpendPublicKeyP *coin_pub,
+ struct TALER_CoinPubHash *coin_h);
+
+
GNUNET_NETWORK_STRUCT_BEGIN
/**