From 187ae6f8a2231628be944ae43ef53f47b8428d12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20Kesim?= Date: Mon, 13 Mar 2023 00:31:49 +0100 Subject: WIP: age-withdraw, continue verify_commitment_and_max_age, 7/n - 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. --- src/include/taler_crypto_lib.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 f7462d093..5aa22b532 100644 --- a/src/include/taler_crypto_lib.h +++ b/src/include/taler_crypto_lib.h @@ -5952,16 +5952,16 @@ TALER_age_commitment_base_public_key; * * See https://docs.taler.net/core/api-exchange.html#withdraw-with-age-restriction * + * @param secret The master secret of the coin from which we derive the age restriction * @param mask The age mask, defining the age groups * @param max_age The maximum age for this coin. - * @param coin_priv The private key of the coin from which we derive the age restriction * @param[out] comm_proof The commitment and proof for age restriction for age @a max_age */ enum GNUNET_GenericReturnValue -TALER_age_restriction_commit_from_base ( - const struct TALER_CoinSpendPrivateKeyP *coin_priv, +TALER_age_restriction_from_secret ( + const struct TALER_PlanchetMasterSecretP *secret, const struct TALER_AgeMask *mask, - uint8_t max_age, + const uint8_t max_age, struct TALER_AgeCommitmentProof *comm_proof); -- cgit v1.2.3