summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
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
commit187ae6f8a2231628be944ae43ef53f47b8428d12 (patch)
tree40298af848d265e79ab5bf8e7271e7dc3f7abe67 /src/include
parent62da9cca275d7a37a640a962c0d04278288986f6 (diff)
downloadexchange-187ae6f8a2231628be944ae43ef53f47b8428d12.tar.gz
exchange-187ae6f8a2231628be944ae43ef53f47b8428d12.tar.bz2
exchange-187ae6f8a2231628be944ae43ef53f47b8428d12.zip
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')
-rw-r--r--src/include/taler_crypto_lib.h8
-rw-r--r--src/include/taler_exchangedb_plugin.h4
2 files changed, 6 insertions, 6 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);
diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h
index 2c606225d..e05ddeed9 100644
--- a/src/include/taler_exchangedb_plugin.h
+++ b/src/include/taler_exchangedb_plugin.h
@@ -1064,9 +1064,9 @@ struct TALER_EXCHANGEDB_AgeWithdrawCommitment
struct TALER_Amount amount_with_fee;
/**
- * Maximum age group that the coins are restricted to.
+ * Maximum age that the coins are restricted to.
*/
- uint32_t max_age_group;
+ uint32_t max_age;
/**
* The hash of the commitment of all n*kappa coins