commit cfa9393bc79fa798c71a8b45d3ec5d7cc69ba813
parent 068f8abb9dd251dad8140d804340913a4da8295d
Author: Özgür Kesim <oec-taler@kesim.org>
Date: Tue, 28 Jun 2022 14:41:36 +0200
added age restriction relevant fields to p2p
Diffstat:
1 file changed, 19 insertions(+), 6 deletions(-)
diff --git a/core/api-exchange.rst b/core/api-exchange.rst
@@ -3428,10 +3428,11 @@ Wallet-to-wallet transfers
// Exchange's unblinded RSA signature of the coin.
ub_sig: DenominationSignature;
- // Age commitment hash for the coin, if the denomination is age-restricted.
- h_age_commitment?: HashCode;
+ // Age commitment for the coin, if the denomination is age-restricted.
+ age_commitment?: AgeCommitment;
- // FIXME-Oec: proof of age is missing.
+ // Attestation for the minimum age, if the denomination is age-restricted.
+ attest?: Attestation;
// Signature over `TALER_PurseDepositSignaturePS`
// of purpose ``TALER_SIGNATURE_WALLET_PURSE_DEPOSIT``
@@ -3813,10 +3814,11 @@ Wallet-to-wallet transfers
// Exchange's unblinded RSA signature of the coin.
ub_sig: DenominationSignature;
- // Age commitment hash for the coin, if the denomination is age-restricted.
- h_age_commitment?: HashCode;
+ // Age commitment for the coin, if the denomination is age-restricted.
+ age_commitment?: AgeCommitment;
- // FIXME-Oec: proof of age is missing.
+ // Attestation for the minimum age, if the denomination is age-restricted.
+ attest?: Attestation;
// Signature over `TALER_PurseDepositSignaturePS`
// of purpose ``TALER_SIGNATURE_WALLET_PURSE_DEPOSIT``
@@ -3862,6 +3864,17 @@ Wallet-to-wallet transfers
}
+ .. ts:def:: AgeCommitment
+
+ // AgeCommitment is an array of public keys, one for each age group of the
+ // age-restricted denomination.
+ type AgeCommitment = []Edx25519PublicKey;
+
+ .. ts:def:: Attestation
+
+ // An attestation for a minimum age is an Edx25519 signature of the age
+ // with purpose ``TALER_SIGNATURE_WALLET_AGE_ATTESTATION``.
+ type Attestation = string;
.. _exchange_wads: