summaryrefslogtreecommitdiff
path: root/src/include/taler_crypto_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-02-08 00:12:56 +0100
committerChristian Grothoff <christian@grothoff.org>2022-02-08 00:12:56 +0100
commit7eb989b2dffe418d40a5101c05054cd4bfa4474a (patch)
treeca7785c9b44caac014908437c1d81fa78992d3d5 /src/include/taler_crypto_lib.h
parent17a30cbd708cb2427fd3a7533fc9945898e2c34c (diff)
downloadexchange-7eb989b2dffe418d40a5101c05054cd4bfa4474a.tar.gz
exchange-7eb989b2dffe418d40a5101c05054cd4bfa4474a.tar.bz2
exchange-7eb989b2dffe418d40a5101c05054cd4bfa4474a.zip
-get melt and refresh-reveal to pass again
Diffstat (limited to 'src/include/taler_crypto_lib.h')
-rw-r--r--src/include/taler_crypto_lib.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h
index dbf390ea9..8c2479b98 100644
--- a/src/include/taler_crypto_lib.h
+++ b/src/include/taler_crypto_lib.h
@@ -1498,6 +1498,22 @@ TALER_transfer_secret_to_planchet_secret (
/**
+ * Derive the @a coin_num transfer private key @a tpriv from a refresh from
+ * the @a ps seed of the refresh operation. The transfer private key
+ * derivation is based on the @a ps with a KDF salted by the @a coin_num.
+ *
+ * @param ps seed to use for KDF to derive transfer keys
+ * @param cnc_num cut and choose number to include in KDF
+ * @param[out] tpriv value to initialize
+ */
+void
+TALER_planchet_secret_to_transfer_priv (
+ const struct TALER_PlanchetSecretsP *ps,
+ uint32_t cnc_num,
+ struct TALER_TransferPrivateKeyP *tpriv);
+
+
+/**
* Setup information for fresh coins to be withdrawn
* or refreshed.
*