commit 72f5f154b15f6974ac9c1b0c7477a62aca8332d4
parent 2e27ed82871a2e67560d843112fbd71c13d248a5
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 10 Nov 2025 17:30:33 +0100
fix spec
Diffstat:
1 file changed, 5 insertions(+), 16 deletions(-)
diff --git a/core/api-exchange.rst b/core/api-exchange.rst
@@ -3325,6 +3325,7 @@ proof to the seller for the escrow of sufficient fund.
interface DepositDoubleSpendError {
// Must be TALER_EC_EXCHANGE_GENERIC_INSUFFICIENT_FUNDS
+ // or TALER_EC_EXCHANGE_GENERIC_COIN_CONFLICTING_DENOMINATION_KEY
code: Integer;
// A string explaining that the user tried to
@@ -3334,6 +3335,9 @@ proof to the seller for the escrow of sufficient fund.
// EdDSA public key of a coin being double-spent.
coin_pub: EddsaPublicKey;
+ // Hash of the public key of the denomination of the coin.
+ h_denom_pub: HashCode;
+
}
@@ -3379,7 +3383,7 @@ by anyone except the wallet itself.
can be decided by looking at the error code
(``TALER_EC_EXCHANGE_GENERIC_INSUFFICIENT_FUNDS`` or
``TALER_EC_EXCHANGE_GENERIC_COIN_CONFLICTING_DENOMINATION_KEY``).
- The response is `MeltForbiddenResponse` in both cases.
+ The response is `DepositDoubleSpendError` in both cases.
:http:statuscode:`410 Gone`:
The requested denomination key is not yet or no longer valid.
It either before the validity start, past the expiration or was revoked. The response is a
@@ -3475,21 +3479,6 @@ by anyone except the wallet itself.
}
- .. ts:def:: MeltForbiddenResponse
-
- interface MeltForbiddenResponse {
- // Text describing the error.
- hint: string;
-
- // Detailed error code.
- code: Integer;
-
- // The transaction list of the respective coin that failed to have sufficient funds left.
- // Note that only the transaction history for one bogus coin is given,
- // even if multiple coins would have failed the check.
- history: CoinSpendHistoryItem[];
- }
-
------
Recoup