From 4c53d42e44cbab55194b2f0fb71ffc3cb082b56a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20Kesim?= Date: Thu, 3 Mar 2022 19:35:24 +0100 Subject: [age restriction] progress 18/n - attestation tested - Unit-tests for commit, derive, attest and verify added, with multiple combinations of minimum age and commited age. - Fixed crypto implementation (eddsa -> ecdsa) - Using now standard functionality from GNUNET: GNUNET_CRYPTO_ecdsa_{private,public}_key_derive All tests pass (unit tests in util/ and 'make check' in testing). --- src/include/taler_crypto_lib.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/include/taler_crypto_lib.h') diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h index ea1a73af5..e114ef83a 100644 --- a/src/include/taler_crypto_lib.h +++ b/src/include/taler_crypto_lib.h @@ -339,9 +339,9 @@ struct TALER_CoinSpendPrivateKeyP struct TALER_AgeCommitmentPrivateKeyP { /** - * Taler uses EdDSA for coins when signing age verification attestation. + * Taler uses EcDSA for coins when signing age verification attestation. */ - struct GNUNET_CRYPTO_EddsaPrivateKey eddsa_priv; + struct GNUNET_CRYPTO_EcdsaPrivateKey priv; }; @@ -351,9 +351,9 @@ struct TALER_AgeCommitmentPrivateKeyP struct TALER_AgeCommitmentPublicKeyP { /** - * Taler uses EdDSA for coins when signing age verification attestation. + * Taler uses EcDSA for coins when signing age verification attestation. */ - struct GNUNET_CRYPTO_EddsaPublicKey eddsa_pub; + struct GNUNET_CRYPTO_EcdsaPublicKey pub; }; @@ -869,7 +869,7 @@ struct TALER_AgeCommitmentHash */ struct TALER_AgeAttestation { - struct GNUNET_CRYPTO_EddsaSignature eddsa_signature; + struct GNUNET_CRYPTO_EcdsaSignature signature; }; extern const struct TALER_AgeCommitmentHash TALER_ZeroAgeCommitmentHash; @@ -3326,7 +3326,7 @@ struct TALER_AgeCommitment * * The list has been allocated via GNUNET_malloc. */ - struct TALER_AgeCommitmentPublicKeyP *pub; + struct TALER_AgeCommitmentPublicKeyP *keys; }; struct TALER_AgeProof @@ -3347,7 +3347,7 @@ struct TALER_AgeProof * * The list has been allocated via GNUNET_malloc. */ - struct TALER_AgeCommitmentPrivateKeyP *priv; + struct TALER_AgeCommitmentPrivateKeyP *keys; }; struct TALER_AgeCommitmentProof -- cgit v1.2.3