diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-03-24 17:13:17 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-03-24 17:13:17 +0100 |
commit | f052af1e6bc9532c7a924ca3e8edba2e990b3b83 (patch) | |
tree | 7440e5d69953e657e8cd62a9ee2ba3c9864cdf13 /src/include | |
parent | 55959bd01d636d324077d4201df0beca676e8d58 (diff) | |
download | exchange-f052af1e6bc9532c7a924ca3e8edba2e990b3b83.tar.xz |
address #3731: no need for session public key or signature
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_crypto_lib.h | 39 | ||||
-rw-r--r-- | src/include/taler_signatures.h | 70 |
2 files changed, 2 insertions, 107 deletions
diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h index a7e902777..3156e63ed 100644 --- a/src/include/taler_crypto_lib.h +++ b/src/include/taler_crypto_lib.h @@ -94,32 +94,6 @@ struct TALER_MerchantPrivateKey /** - * Type of public keys used by clients to sign - * messages during a melting session. - */ -struct TALER_SessionPublicKey -{ - /** - * Taler uses EdDSA for melting session keys. - */ - struct GNUNET_CRYPTO_EddsaPublicKey eddsa_pub; -}; - - -/** - * Type of public keys used by clients to sign - * messages during a melting session. - */ -struct TALER_SessionPrivateKey -{ - /** - * Taler uses EdDSA for melting session keys. - */ - struct GNUNET_CRYPTO_EddsaPrivateKey eddsa_priv; -}; - - -/** * Type of transfer public keys used during refresh * operations. */ @@ -148,19 +122,6 @@ struct TALER_TransferPrivateKey /** - * Type of signatures used by clients to sign - * messages during a melting session. - */ -struct TALER_SessionSignature -{ - /** - * Taler uses EdDSA for melting session keys. - */ - struct GNUNET_CRYPTO_EddsaSignature eddsa_signature; -}; - - -/** * Type of online public keys used by the mint to sign * messages. */ diff --git a/src/include/taler_signatures.h b/src/include/taler_signatures.h index fa713dc42..b8fe8a7b7 100644 --- a/src/include/taler_signatures.h +++ b/src/include/taler_signatures.h @@ -61,28 +61,16 @@ #define TALER_SIGNATURE_REFRESH_MELT_COIN 5 /** - * Signature where the refresh session confirms - * the commits. - */ -#define TALER_SIGNATURE_REFRESH_MELT_SESSION 6 - -/** * Signature where the mint (current signing key) * confirms the no-reveal index for cut-and-choose and * the validity of the melted coins. */ -#define TALER_SIGNATURE_REFRESH_MELT_RESPONSE 7 - -/** - * Signature where coins confirm that they want - * to be melted into a certain session. - */ -#define TALER_SIGNATURE_REFRESH_MELT_CONFIRM 9 +#define TALER_SIGNATURE_REFRESH_MELT_RESPONSE 6 /** * Signature where the Mint confirms a deposit request. */ -#define TALER_SIGNATURE_MINT_DEPOSIT 10 +#define TALER_SIGNATURE_MINT_DEPOSIT 7 /***********************/ @@ -278,40 +266,6 @@ struct RefreshMeltCoinSignature /** - * Message signed by a coin to indicate that the coin should - * be melted. - */ -struct RefreshMeltSessionSignature -{ - /** - * Purpose is #TALER_SIGNATURE_REFRESH_MELT_SESSION - */ - struct GNUNET_CRYPTO_EccSignaturePurpose purpose; - - /** - * Which melting operation should the coin become a part of. - */ - struct GNUNET_HashCode melt_hash; - - /** - * Public key of the refresh session for which - * @e melt_client_signature must be a valid signature. - */ - struct TALER_SessionPublicKey session_key; - - /** - * What is the total value of the coins created during the - * refresh, including melting fee! - */ - struct TALER_AmountNBO amount_with_fee; - - /* FIXME: we should probably also include the value of - the melting fee here as well! */ - -}; - - -/** * Format of the block signed by the Mint in response to a successful * "/refresh/melt" request. Hereby the mint affirms that all of the * coins were successfully melted. This also commits the mint to a @@ -337,26 +291,6 @@ struct RefreshMeltResponseSignatureBody /** - * Message signed by the client requesting the final - * result of the melting operation. - */ -struct RefreshMeltConfirmSignRequestBody -{ - /** - * Purpose is #TALER_SIGNATURE_REFRESH_MELT_CONFIRM. - */ - struct GNUNET_CRYPTO_EccSignaturePurpose purpose; - - // FIXME: We probably need more info in here... - - /** - * Public key the client uses for this session. - */ - struct TALER_SessionPublicKey session_pub; -}; - - -/** * Information about a signing key of the mint. Signing keys are used * to sign mint messages other than coins, i.e. to confirm that a * deposit was successful or that a refresh was accepted. |