diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-08-08 19:52:05 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-08-08 19:52:05 +0200 |
commit | 00d613728fdddf4f28e3c50cb2f70bfbba65e298 (patch) | |
tree | 0c4fb7fcf4befb711aa6cbf64ee4e40404c3a096 /src/include/taler_crypto_lib.h | |
parent | ce4f6e2106ffe5b92fecef502c7ca3f7fd211a43 (diff) | |
download | exchange-00d613728fdddf4f28e3c50cb2f70bfbba65e298.tar.xz |
completing TALER_MINT_refresh_melt implementation
Diffstat (limited to 'src/include/taler_crypto_lib.h')
-rw-r--r-- | src/include/taler_crypto_lib.h | 17 |
1 files changed, 17 insertions, 0 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. * |