taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

commit bccd5efc461707d7c53937a890adaf3f722085dc
parent f0d3af4c2bc9cbdbf8c04924652567c3c01bc6fa
Author: Özgür Kesim <oec-taler@kesim.org>
Date:   Wed, 11 Jan 2023 15:26:07 +0100

added max_age_group to the withdraw-age request, made it signed by the reserve_priv, and put into the database schema

Diffstat:
Mcore/api-common.rst | 1+
Mcore/api-exchange.rst | 4++++
Mdesign-documents/024-age-restriction.rst | 2+-
3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/core/api-common.rst b/core/api-common.rst @@ -842,6 +842,7 @@ within the struct TALER_ReservePublicKeyP reserve_pub; struct GNUNET_HashCode age_restricted_coins_commitment; struct GNUNET_HashCode h_denoms_h; + uint8 max_age_group; }; diff --git a/core/api-exchange.rst b/core/api-exchange.rst @@ -2122,6 +2122,10 @@ If so, the exchange will blindly sign ``n`` undisclosed coins from the request. // denominations MUST equal this amount. amount: Amount; + // The maximum age group to commit to. MUST be the same as the maximum + // age group in the reserve. + max_age_group: number; + // Signature of `TALER_AgeWithdrawRequestPS` created with // the `reserves's private key <reserve-priv>` // using purpose ``TALER_SIGNATURE_WALLET_RESERVE_AGE_WITHDRAW``. diff --git a/design-documents/024-age-restriction.rst b/design-documents/024-age-restriction.rst @@ -442,7 +442,7 @@ schema in the exchange is given here: label=<<B>withdraw_age_commitments</B>> margin=20 commitments [ - label="<id>withdraw_age_commitments_id\l|h_commitment\l|amount_with_fee_val\l|amount_with_fee_frac\l|noreveal_index\l|<res>reserve_uuid\l|reserve_sig\l|timestamp\l" + label="<id>withdraw_age_commitments_id\l|h_commitment\l|amount_with_fee_val\l|amount_with_fee_frac\l|noreveal_index\l|max_age_group\l|<res>reserve_pub\l|reserve_sig\l|timestamp\l" ] }