taler-docs

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

commit d8aac30a57cd55f6a75c237f3d25351ef7e719a9
parent f13f8118e78cde34dd321485e193cd9bbf2e34c6
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu,  2 Jun 2022 21:47:06 +0200

-document MERGE entry

Diffstat:
Mcore/api-exchange.rst | 54+++++++++++++++++++++++++++++++++++++++++++++++++++---
1 file changed, 51 insertions(+), 3 deletions(-)

diff --git a/core/api-exchange.rst b/core/api-exchange.rst @@ -1188,7 +1188,55 @@ exchange. | ReserveWithdrawTransaction | ReserveCreditTransaction | ReserveClosingTransaction - | ReserveRecoupTransaction; + | PurseMergeTransaction; + + .. ts:def:: PurseMergeTransaction + + interface PurseMergeTransaction { + type: "MERGE"; + + // SHA-512 hash of the contact of the purse. + h_contract_terms: HashCode; + + // EdDSA public key used to approve merges of this purse. + merge_pub: EddsaPublicKey; + + // Minimum age required for all coins deposited into the purse. + min_age: Integer; + + // Number that identifies who created the purse + // and how it was paid for. + flags: Integer; + + // Purse public key. + purse_pub: EddsaPublicKey; + + // EdDSA signature of the account/reserve affirming the merge + // over a `TALER_AccountMergeSignaturePS`. + // Must be of purpose ``TALER_SIGNATURE_ACCOUNT_MERGE`` + reserve_sig: EddsaSignature; + + // Client-side timestamp of when the merge request was made. + merge_timestamp: Timestamp; + + // Indicative time by which the purse should expire + // if it has not been merged into an account. At this + // point, all of the deposits made should be + // auto-refunded. + purse_expiration: Timestamp; + + // Purse fee the reserve owner paid for the purse creation. + purse_fee: Amount; + + // Total amount merged into the reserve. + // (excludes fees). + amount: Amount; + + // True if the purse was actually merged. + // If false, only the purse_fee has an impact + // on the reserve balance! + merged: Boolean; + } .. ts:def:: ReserveHistoryTransaction @@ -1196,7 +1244,7 @@ exchange. type: "HISTORY"; // Fee agreed to by the reserve owner. - history_fee: Amount; + amount: Amount; // Time when the request was made. request_timestamp: Timestamp; @@ -1652,7 +1700,7 @@ exchange. balance: Amount; // History of the reserve's activity, in the same format - // as returned by ``/reserve/status``. + // as returned by ``/reserve/$RID/history``. history: TransactionHistoryItem[] }