diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2023-03-13 00:31:49 +0100 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2023-03-13 00:31:49 +0100 |
commit | 187ae6f8a2231628be944ae43ef53f47b8428d12 (patch) | |
tree | 40298af848d265e79ab5bf8e7271e7dc3f7abe67 /src/include/taler_crypto_lib.h | |
parent | 62da9cca275d7a37a640a962c0d04278288986f6 (diff) | |
download | exchange-187ae6f8a2231628be944ae43ef53f47b8428d12.tar.xz |
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.
Diffstat (limited to 'src/include/taler_crypto_lib.h')
-rw-r--r-- | src/include/taler_crypto_lib.h | 8 |
1 files changed, 4 insertions, 4 deletions
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); |