summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-11-05 23:01:21 +0100
committerChristian Grothoff <christian@grothoff.org>2021-11-05 23:01:21 +0100
commitc3e244322b6b7234c0234471b07d67bf6a210b91 (patch)
tree6b5b73eddac8662bacb74406c24a3277a0252048 /src/include
parenteaf9d728f54681be4e9ed3467ff9d10e71ad2b04 (diff)
downloadexchange-c3e244322b6b7234c0234471b07d67bf6a210b91.tar.gz
exchange-c3e244322b6b7234c0234471b07d67bf6a210b91.tar.bz2
exchange-c3e244322b6b7234c0234471b07d67bf6a210b91.zip
more crypto refactoring
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_crypto_lib.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h
index 0a0be0cb7..8907ca43f 100644
--- a/src/include/taler_crypto_lib.h
+++ b/src/include/taler_crypto_lib.h
@@ -725,6 +725,26 @@ TALER_denom_sig_free (struct TALER_DenominationSignature *denom_sig);
/**
+ * Blind coin for blind signing with @a dk using blinding secret @a coin_bks.
+ *
+ * @param dk denomination public key to blind for
+ * @param coin_bks blinding secret to use
+ * @param coin_pub public key of the coin to blind
+ * @param[out] c_hash resulting hashed coin
+ * @param[out] coin_ev blinded coin to submit
+ * @param[out] coin_ev_size number of bytes in @a coin_ev
+ * @return #GNUNET_OK on success
+ */
+enum GNUNET_GenericReturnValue
+TALER_denom_blind (const struct TALER_DenominationPublicKey *dk,
+ const union TALER_DenominationBlindingKeyP *coin_bks,
+ const struct TALER_CoinSpendPublicKeyP *coin_pub,
+ struct TALER_CoinPubHash *c_hash,
+ void **coin_ev,
+ size_t *coin_ev_size);
+
+
+/**
* Create blinded signature.
*
* @param[out] denom_sig where to write the signature