View Issue Details

IDProjectCategoryView StatusLast Update
0012244Talerdocumentationpublic2026-11-29 18:40
Reporterbot-oec [agent]  
ReviewerChristian Grothoff Release signed byFlorian Dold  
Deployed byFlorian Dold VerifierFlorian Dold  
CommunicatorCM_7  
PrioritynormalSeveritytext 
Status closedResolutionfixed 
Fixed in Version1.6 
Summary0012244: P2P payments: the refund of a purse's coins on expiry or deletion is not documented at the purse endpoints
DescriptionWhat a coin gets back when its purse expires or is deleted is documented only by the coin history entry (`CoinPurseRefundTransaction`), and there in the older form: the contribution less the refund fee of the coin's denomination, the deposit fee waived. Since exchange 7f43c9292 a purse refund restores the whole contribution, deposit fee included, and the entry states a refund fee of zero; the client library accepts both forms (7b658d8da). The purse endpoints and `/keys` say nothing about it.

**Proposed change:** document at `CoinPurseRefundTransaction` that `amount` is the whole contribution and `refund_fee` is zero (with the older form accepted from older exchanges), and state at the purse endpoints that on expiry or deletion each coin gets its whole contribution back, without a refund fee (`spec/p2p.md` (E3)).

**Found by:** the formalization of the Taler protocols; specifying the purse refund (`spec/p2p.md`) from the documentation and the exchange.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

bot-oec [agent]

2026-11-21 23:18

reporter   ~0030723

Proposed patch (taler-docs master b3970cce). CoinPurseRefundTransaction already documents the whole contribution with a zero refund fee (and the older form); this states the same rule at the purse endpoints, for expiry and DELETE.

diff --git a/core/exchange/delete-purses-PURSE_PUB.rst b/core/exchange/delete-purses-PURSE_PUB.rst
index a1785c19..98e32327 100644
--- a/core/exchange/delete-purses-PURSE_PUB.rst
+++ b/core/exchange/delete-purses-PURSE_PUB.rst
@@ -1,7 +1,9 @@
 .. http:delete:: /purses/$PURSE_PUB
 
   Delete a purse that is unmerged and not yet expired. Refunds any money that
- is already in the purse.
+ is already in the purse: each coin gets its whole contribution back, deposit
+ fee included, without a refund fee (the ``PURSE-REFUND`` entry of the coin
+ history).
 
   **Request:**
 
diff --git a/core/exchange/post-purses-PURSE_PUB-create.rst b/core/exchange/post-purses-PURSE_PUB-create.rst
index bb0dd055..c9962e60 100644
--- a/core/exchange/post-purses-PURSE_PUB-create.rst
+++ b/core/exchange/post-purses-PURSE_PUB-create.rst
@@ -121,7 +121,9 @@
 
       // 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 will be auto-refunded.
+ // point, all of the deposits made will be auto-refunded:
+ // each coin gets its whole contribution back, deposit fee
+ // included, without a refund fee.
       // Must not be further in the future than
       // ``max_p2p_expiration`` of :http:get:`/keys </keys>`.
       purse_expiration: Timestamp;
@@ -192,7 +194,7 @@
       // 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.
+ // auto-refunded in full (whole contributions, no refund fee).
       purse_expiration: Timestamp;
 
       // EdDSA signature of the purse over
diff --git a/core/exchange/post-purses-PURSE_PUB-deposit.rst b/core/exchange/post-purses-PURSE_PUB-deposit.rst
index 4d6da7d7..76654c08 100644
--- a/core/exchange/post-purses-PURSE_PUB-deposit.rst
+++ b/core/exchange/post-purses-PURSE_PUB-deposit.rst
@@ -117,7 +117,9 @@
 
       // 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 will be auto-refunded.
+ // point, all of the deposits made will be auto-refunded:
+ // each coin gets its whole contribution back, deposit fee
+ // included, without a refund fee.
       purse_expiration: Timestamp;
 
       // SHA-512 hash of the contact of the purse.

Christian Grothoff

2026-11-29 18:40

manager   ~0030984

Straightforward API clarification. Done in 2e85a5ab..1bbf61c3

Issue History

Date ModifiedUsernameFieldChange
2026-11-21 10:27bot-oecNew Issue
2026-11-21 10:27bot-oecImplementer => Emmanuel
2026-11-21 10:27bot-oecReviewer => bernaalp
2026-11-21 10:27bot-oecRelease signed by => Antoine A
2026-11-21 10:27bot-oecDeployed by => bernaalp
2026-11-21 10:27bot-oecVerifier => bernaalp
2026-11-21 10:27bot-oecCommunicator => CM_7
2026-11-21 16:00oecImplementerEmmanuel =>
2026-11-21 16:00oecReviewerbernaalp => Christian Grothoff
2026-11-21 16:00oecRelease signed byAntoine A => Florian Dold
2026-11-21 16:00oecDeployed bybernaalp => Florian Dold
2026-11-21 16:00oecVerifierbernaalp => Florian Dold
2026-11-21 22:44Christian GrothoffSeverityminor => text
2026-11-21 23:18bot-oecNote Added: 0030723
2026-11-29 15:59Christian GrothoffView Statusprivate => public
2026-11-29 18:40Christian GrothoffStatusnew => closed
2026-11-29 18:40Christian GrothoffResolutionopen => fixed
2026-11-29 18:40Christian GrothoffFixed in Version => 1.6
2026-11-29 18:40Christian GrothoffNote Added: 0030984