diff options
-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: |