aboutsummaryrefslogtreecommitdiff
path: root/src/include/taler_crypto_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-03-28 14:22:21 +0100
committerChristian Grothoff <christian@grothoff.org>2015-03-28 14:22:21 +0100
commit891018f69f52244fd4cb61b50e3b3aeaeb0d8f50 (patch)
treed745a8037f4f8e8fb6eed515e10a1e12c9fc8c24 /src/include/taler_crypto_lib.h
parent28b6b26567b87b294c247467821a304359f7eca1 (diff)
minor renaming of signature values and improved documentation of signatures, also adding a few missing fields to signatures to address #3631
Diffstat (limited to 'src/include/taler_crypto_lib.h')
-rw-r--r--src/include/taler_crypto_lib.h22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h
index cfd588a52..5b45661b7 100644
--- a/src/include/taler_crypto_lib.h
+++ b/src/include/taler_crypto_lib.h
@@ -197,33 +197,45 @@ struct TALER_MasterSignatureP
/**
- * Type of public keys for Taler coins.
+ * Type of public keys for Taler coins. The same key material is used
+ * for ECDSA and ECDHE operations.
*/
union TALER_CoinSpendPublicKeyP
{
/**
- * Taler uses ECDSA for coins.
+ * Taler uses ECDSA for coins when signing deposit requests.
*/
struct GNUNET_CRYPTO_EcdsaPublicKey ecdsa_pub;
+
+ /**
+ * Taler uses ECDH(E) for coin linkage during refresh operations.
+ */
+ struct GNUNET_CRYPTO_EcdhePublicKey ecdhe_pub;
};
/**
- * Type of private keys for Taler coins.
+ * Type of private keys for Taler coins. The same key material is used
+ * for ECDSA and ECDHE operations.
*/
union TALER_CoinSpendPrivateKeyP
{
/**
- * Taler uses ECDSA for coins.
+ * Taler uses ECDSA for coins when signing deposit requests.
*/
struct GNUNET_CRYPTO_EcdsaPrivateKey ecdsa_priv;
+
+ /**
+ * Taler uses ECDHE for coin linkage during refresh operations.
+ */
+ struct GNUNET_CRYPTO_EcdhePrivateKey ecdhe_priv;
};
/**
* Type of signatures made with Taler coins.
*/
-union TALER_CoinSpendSignatureP
+struct TALER_CoinSpendSignatureP
{
/**
* Taler uses ECDSA for coins.