use DK age group, not global age group

This commit is contained in:
Christian Grothoff 2023-07-10 16:55:26 +02:00
parent 6a483b51ec
commit 6c44755458
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
3 changed files with 11 additions and 4 deletions

View File

@ -125,6 +125,7 @@ struct TALER_EXCHANGE_DenomPublicKey
* revoked by the exchange.
*/
bool revoked;
};
@ -2748,13 +2749,16 @@ TALER_EXCHANGE_batch_withdraw2_cancel (
*/
struct TALER_EXCHANGE_AgeWithdrawCoinInput
{
/* The master secret from which we derive all other relevant values for
/**
* The master secret from which we derive all other relevant values for
* the coin: private key, nonces (if applicable) and age restriction
*/
const struct TALER_PlanchetMasterSecretP secret[TALER_CNC_KAPPA];
/* The denomination of the coin. Must support age restriction, i.e
* its .keys.age_mask MUST not be 0 */
/**
* The denomination of the coin. Must support age restriction, i.e
* its .keys.age_mask MUST not be 0
*/
const struct TALER_EXCHANGE_DenomPublicKey *denom_pub;
};

View File

@ -1757,7 +1757,7 @@ TALER_EXCHANGE_keys_to_json (const struct TALER_EXCHANGE_Keys *kd)
.cipher = dk->key.cipher,
.value = dk->value,
.fees = dk->fees,
.age_mask = kd->age_mask
.age_mask = dk->key.age_mask
};
struct GNUNET_HashCode key;
struct GroupData *gd;

View File

@ -34,6 +34,9 @@ EXPIRE_IDLE_SLEEP_INTERVAL = 1 s
[exchangedb-postgres]
CONFIG = "postgres:///talercheck"
[taler-exchange-secmod-cs]
LOOKAHEAD_SIGN = 24 days
[taler-exchange-secmod-rsa]
LOOKAHEAD_SIGN = 24 days