diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2022-03-03 19:35:24 +0100 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2022-03-03 19:35:24 +0100 |
commit | 4c53d42e44cbab55194b2f0fb71ffc3cb082b56a (patch) | |
tree | ad506b81aa2a8f1801224a10d1dc12795a846091 /src/include | |
parent | 476ae5380823f287421885bac15871dc970d53e7 (diff) | |
download | exchange-4c53d42e44cbab55194b2f0fb71ffc3cb082b56a.tar.xz |
[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).
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_crypto_lib.h | 14 |
1 files changed, 7 insertions, 7 deletions
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 |