aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-08-08 19:52:05 +0200
committerChristian Grothoff <christian@grothoff.org>2015-08-08 19:52:05 +0200
commit00d613728fdddf4f28e3c50cb2f70bfbba65e298 (patch)
tree0c4fb7fcf4befb711aa6cbf64ee4e40404c3a096 /src/include
parentce4f6e2106ffe5b92fecef502c7ca3f7fd211a43 (diff)
completing TALER_MINT_refresh_melt implementation
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_crypto_lib.h17
-rw-r--r--src/include/taler_mint_service.h2
2 files changed, 18 insertions, 1 deletions
diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h
index 4126894a1..5f1425077 100644
--- a/src/include/taler_crypto_lib.h
+++ b/src/include/taler_crypto_lib.h
@@ -469,6 +469,23 @@ TALER_link_decrypt_secret2 (const struct TALER_EncryptedLinkSecretP *secret_enc,
/**
+ * Given the coin and the transfer private keys, compute the
+ * transfer secret. (Technically, we only need one of the two
+ * private keys, but the caller currently trivially only has
+ * the two private keys, so we derive one of the public keys
+ * internally to this function.)
+ *
+ * @param coin_priv coin key
+ * @param trans_priv transfer private key
+ * @param[out] computed transfer secret
+ */
+void
+TALER_link_derive_transfer_secret (const struct TALER_CoinSpendPrivateKeyP *coin_priv,
+ const struct TALER_TransferPrivateKeyP *trans_priv,
+ struct TALER_TransferSecretP *ts);
+
+
+/**
* Encrypt the shared @a secret to generate the encrypted link secret.
* Also creates the transfer key.
*
diff --git a/src/include/taler_mint_service.h b/src/include/taler_mint_service.h
index b228acc5e..fa1f7a507 100644
--- a/src/include/taler_mint_service.h
+++ b/src/include/taler_mint_service.h
@@ -181,7 +181,7 @@ struct TALER_MINT_DenomPublicKey
struct TALER_Amount fee_deposit;
/**
- *The applicable fee to refresh a coin of this denomination
+ *The applicable fee to melt/refresh a coin of this denomination
*/
struct TALER_Amount fee_refresh;
};