taler-docs

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

commit 245a6bcf2ff3cc0f3d813ab7f3d8c25e8bf1120c
parent 232ca2b475de66e42a6112c9dbf106e48f734d2b
Author: Christian Blättler <blatc2@bfh.ch>
Date:   Mon,  3 Jun 2024 20:46:43 +0200

DD46: price —> amount & add valid_after to output token

Diffstat:
Mdesign-documents/046-mumimo-contracts.rst | 15++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/design-documents/046-mumimo-contracts.rst b/design-documents/046-mumimo-contracts.rst @@ -223,7 +223,7 @@ The contract terms v1 will have the following structure: // such as rations and tokens. // The exchange will subtract deposit fees from that amount // before transferring it to the merchant. - price: Amount; + amount: Amount; // List of inputs the wallet must provision (all of them) to // satisfy the conditions for the contract. @@ -269,9 +269,13 @@ The contract terms v1 will have the following structure: type: "token"; // Slug of the token family in the - // 'token_families' map on the top-level. + // 'token_families' map on the order. token_family_slug: string; + // Start of the validity period of the token. This is used to find the + // matching public key within the token family. + valid_after: Timestamp; + // Number of tokens of this type required. // Defaults to one if the field is not provided. number?: Integer; @@ -323,7 +327,8 @@ The contract terms v1 will have the following structure: // 'token_families' map on the top-level. token_family_slug: string; - // Start of the validity period of the token. + // Start of the validity period of the token. This is used to find the + // matching public key within the token family. valid_after: Timestamp; // Number of tokens to be issued. @@ -428,7 +433,7 @@ The contract terms v1 will have the following structure: rsa_pub: RsaPublicKey; // Start time of this key's validity period. - valid_after?: Timestamp; + valid_after: Timestamp; // End time of this key's validity period. valid_before: Timestamp; @@ -445,7 +450,7 @@ The contract terms v1 will have the following structure: cs_pub: Cs25519Point; // Start time of this key's validity period. - valid_after?: Timestamp; + valid_after: Timestamp; // End time of this key's validity period. valid_before: Timestamp;