diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2022-06-28 14:41:36 +0200 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2022-06-28 14:41:36 +0200 |
commit | cfa9393bc79fa798c71a8b45d3ec5d7cc69ba813 (patch) | |
tree | e160e5040758b0b2e5a4019ccf065d19d95d1b7f /core | |
parent | 068f8abb9dd251dad8140d804340913a4da8295d (diff) | |
download | docs-cfa9393bc79fa798c71a8b45d3ec5d7cc69ba813.tar.gz docs-cfa9393bc79fa798c71a8b45d3ec5d7cc69ba813.tar.bz2 docs-cfa9393bc79fa798c71a8b45d3ec5d7cc69ba813.zip |
added age restriction relevant fields to p2p
Diffstat (limited to 'core')
-rw-r--r-- | core/api-exchange.rst | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/core/api-exchange.rst b/core/api-exchange.rst index e0ae7503..0a18335c 100644 --- 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: |