summaryrefslogtreecommitdiff
path: root/src/exchange/taler-exchange-httpd_keys.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-02-09 19:24:29 +0100
committerChristian Grothoff <christian@grothoff.org>2022-02-09 19:24:29 +0100
commit008ba5cf8993221fe236b94a2aadbf6f60739b01 (patch)
tree3aa7b33427b576b2ff092b8758b446ba086d5423 /src/exchange/taler-exchange-httpd_keys.h
parent8e4eaabc96fba004fac3295c9acd6272b723de07 (diff)
downloadexchange-008ba5cf8993221fe236b94a2aadbf6f60739b01.tar.gz
exchange-008ba5cf8993221fe236b94a2aadbf6f60739b01.tar.bz2
exchange-008ba5cf8993221fe236b94a2aadbf6f60739b01.zip
implement CS refresh-reveal signing, simplify TEH keys logic
Diffstat (limited to 'src/exchange/taler-exchange-httpd_keys.h')
-rw-r--r--src/exchange/taler-exchange-httpd_keys.h41
1 files changed, 2 insertions, 39 deletions
diff --git a/src/exchange/taler-exchange-httpd_keys.h b/src/exchange/taler-exchange-httpd_keys.h
index 0cab75070..6dbd0d195 100644
--- a/src/exchange/taler-exchange-httpd_keys.h
+++ b/src/exchange/taler-exchange-httpd_keys.h
@@ -82,42 +82,6 @@ struct TEH_DenominationKey
};
-struct TEH_SignDetails_RSA
-{
- /**
- * message to sign
- */
- const void *msg;
-
- /**
- * number of bytes in msg
- */
- size_t msg_size;
-};
-
-
-struct TEH_SignDetails
-{
- /**
- * Cipher type of the message
- */
- enum TALER_DenominationCipher cipher;
-
- union
- {
- /**
- * If we use #TALER_DENOMINATION_RSA in @a cipher.
- */
- struct TEH_SignDetails_RSA rsa_message;
-
- /**
- * If we use #TALER_DENOMINATION_CS in @a cipher.
- */
- struct TALER_BlindedCsPlanchet cs_message;
- } details;
-};
-
-
/**
* Snapshot of the (coin and signing) keys (including private keys) of
* the exchange. There can be multiple instances of this struct, as it is
@@ -207,15 +171,14 @@ TEH_keys_denomination_by_hash2 (struct TEH_KeyStateHandle *ksh,
* @a h_denom_pub.
*
* @param h_denom_pub hash of the public key to use to sign
- * @param msg message to sign
- * @param msg_size number of bytes in @a msg
+ * @param bp blinded planchet to sign
* @param[out] ec set to the error code (or #TALER_EC_NONE on success)
* @return signature, the value inside the structure will be NULL on failure,
* see @a ec for details about the failure
*/
struct TALER_BlindedDenominationSignature
TEH_keys_denomination_sign (const struct TALER_DenominationHash *h_denom_pub,
- const struct TEH_SignDetails *msg,
+ const struct TALER_BlindedPlanchet *bp,
enum TALER_ErrorCode *ec);