summaryrefslogtreecommitdiff
path: root/src/util/age_restriction.c
AgeCommit message (Collapse)Author
2023-11-28fix spelling issuesChristian Grothoff
2023-10-29misc age-restriction related memory leak fixes, plus FIXME-Oec as some leaks ↵Christian Grothoff
remain
2023-09-24fix various FIXMEsChristian Grothoff
2023-09-05fix off-by-one in coarse date calculationÖzgür Kesim
2023-07-24[age-withdraw] first tests passÖzgür Kesim
age-withdraw successfully tested (no reveal yet): 1. reserve filled with amount large enough to trigger kyc 2. kyc oauth2 test daemon sets birthday to 2015-00-00 3. usual withdraw fails with CONFLICT and AGE_RESTRICTION_REQUIRED 4. age-withdraw with loo large of an maximum age fails 5. age-withdraw with appropriate maximum age succeeds
2023-07-10fix memory leaks reported by valgrindÖzgür Kesim
2023-06-27added TALER_adult_age(struct TALER_AgeMask *mask)Özgür Kesim
2023-06-27added birthdate parserÖzgür Kesim
2023-06-26[age-withdraw] age-withdraw commit- and reveal-handlers implemented, 12/nÖzgür Kesim
The handlers for the commit- and reveal-phases of the age-withdraw HTTP-endpoints are implemented, yet not active. Still missing: - support for age-withdraw is missing in lib/. - tests
2023-06-07major libtalertesting API refactoring, including no longer having ↵Christian Grothoff
taler-specific logic in the test engine core
2023-05-09Fix age mask parsing from configÖzgür Kesim
- initialize age mask to zero - drop default bitstring for age mask, use string instead -remove default age mask bits, use string instead -strdup
2023-03-13WIP: age-withdraw, continue verify_commitment_and_max_age, 7/nÖzgür Kesim
- coin, blinding, nonce and age restriction now derived from TALER_PlanchetMasterSecretP - use max_age instead than max_age_group as argument - Also, docs updated in other repo.
2023-03-12WiP: age-withdraw, added TALER_age_restriction_commit_from_base, 6/nÖzgür Kesim
Added TALER_age_restriction_commit_from_base in util/age_restriction.c, to create a age commitment and proof from a coin's private key as defined in https://docs.taler.net/core/api-exchange.html#withdraw-with-age-restriction
2022-11-04policy extensions and age restriction refactoringÖzgür Kesim
- refactoring of extension-plugin-mechanism - refactoring of age restriction extension - added policy extensions plugin plumbing - added DB schema and api - policy_details - policy_fulfillments
2022-08-22-fix clang compiler warningsChristian Grothoff
2022-06-26-fix valgrind complaintsÖzgür Kesim
2022-04-27-fix derivation, loggingFlorian Dold
2022-04-26age restriction: make seed a HashCode due to endianess and security level ↵Florian Dold
concerns
2022-04-26-remove debug loggingFlorian Dold
2022-04-26various age restriction fixes, some of them half-bakedFlorian Dold
2022-04-26-use uint32_t instead of uint8_t + padding for the ageÖzgür Kesim
2022-04-26use htonl, not GNUNET_htonllFlorian Dold
2022-04-26fix age attestation signature padding and endianessFlorian Dold
2022-04-22-fixed tests for age restriction, now using correct seedÖzgür Kesim
2022-04-21Fixed seed size for TALER_age_restriction_commitÖzgür Kesim
Also, added src/util/tv_age_restriction.{c,json} for/as test vectors for age restriction.
2022-03-28-rename variableÖzgür Kesim
2022-03-28[age restriction] progress 19/19 (final) - Use Edx25519 for cryptoÖzgür Kesim
We switch from EcDSA to Edx25519 for the underlying signature scheme. Edx25519 is implemented in gnunet, starting with (gnunet-)commit ce38d1f6c9bd7857a1c3bc2094a0ee9752b86c32.
2022-03-22implement helper functions for p2p signatures, clean up existing signature logicChristian Grothoff
2022-03-08-ensure label has no zero bytesÖzgür Kesim
2022-03-03[age restriction] progress 18/n - attestation testedÖzgür Kesim
- 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).
2022-03-02-refactor TALER_AgeMask.mask -> TALER_AgeMask.bitsÖzgür Kesim
also: fix off-by-one in TALER_age_restriction_commit
2022-03-01[age restriction] progress 17/n - attestation implementedÖzgür Kesim
- functions TALER_age_commitment_attest and TALER_age_commitment_verify implemented. - age restriction implementation moved into util/age_restriction.c