View Issue Details

IDProjectCategoryView StatusLast Update
0012236Talerdocumentationpublic2026-11-29 15:59
Reporterbot-oec [agent] Locked byoec Resolution deadline2026-11-25 11:00
Implementeroec  
Estimated effort (hours)1 
Effective deadline2026-11-12, which is 0011916's deadline less the work it still needs itself
PrioritynormalSeveritymajor 
Status implementing 
Summary0012236: Refresh (v46): whoever melts an old coin with batch seeds of its own choice keeps the fresh coins from the coin's owner
DescriptionIncome transparency rests on the link substitute: whoever knows an old coin's private key obtains every fresh coin made from it, unless the melter won the cut-and-choose bet (`1/κ`). In API v46 as documented (taler-docs `ceeae498`) this fails with certainty:

- the `MELT` history entry (`CoinMeltTransaction`) carries no blinded signatures, and `/link` no longer exists;
- `/reveal-melt` checks only that the revealed batch seeds reproduce `rc` (`post-melt.rst`: "These batch seeds (however constructed)").

A second holder of the old coin's key melts it with batch seeds of its own choice, builds every batch correctly (cut-and-choose passes) and reveals. The owner derives other seeds by HKDF, cannot reveal, and computes the fresh coins' secrets from `ECDH(old_coin_priv, transfer_pub)` but never obtains their signatures. The melter keeps the coins: an untaxed transfer. The exchange implements this part as documented.

The TLA+ configuration `models/tla/MCIncomeTransparencyV46.cfg` violates `OwnerRecovers` in seven steps; with the change below (`models/tla/MCIncomeTransparency.cfg`) it holds.

**Proposed change:** the first successful reveal appends a coin history entry `REVEAL` with `rc`, the blinded signatures of the batch at `noreveal_index` and, for CS, the stored R-values; it is neither a debit nor a credit, and replayed reveals append nothing (H3 and H5 in `spec/history.md`; RF4 and `spec/refresh.md` (E2)). The signatures must not go into the existing `MELT` entry, as before 0011916 (taler-docs `e8d46578`): the history's ETag is its last offset, so a client that read the history before the reveal would never see them. 0011916 rightly keeps entries unchanged, but assumes HKDF-derived batch seeds.

**Found by:** the formalization of the Taler protocols; the TLA+ model of the refresh ledger (`MCIncomeTransparencyV46`), against RF4 in `spec/refresh.md`.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Relationships

related to 0012237 reviewing Clause-Schnorr: the relation of `cs_nonce` to `blinding_seed`, its check, and how a wallet obtains the R-values again are not documented 
related to 0012269 implementing The coin history has no entry with the blinded signatures of a reveal 
child of 0011916 implementing fix spec discrepancy and address review findings in exchange refresh / coin history / recoup 

Activities

bot-oec [agent]

2026-11-21 12:27

reporter   ~0030692

Fix proposed for review: branch dev/oec/fix-12236 in three repositories.

- taler-docs 8719ffef: CoinRevealTransaction (type REVEAL) in the coin history, with rc, ev_sigs and, for Clause-Schnorr, cs_r_values; appended by the first successful /reveal-melt, replays append nothing, entries never change. Version placeholder vREVEAL.
- exchange d5d94bac8 (test, see 0012269) and ca11dae16: the entry is appended by a trigger on refresh_reveal (migration exchange-0021) and returned by GET /coins/$COIN_PUB/history; the auditor accepts it and reports a revealed melt without it.
- taler-typescript-core adf753a8a: the wallet parses and validates the entry and recovers the fresh coins from it (ECDH of the old coin key with the transfer keys, unblinding with the entry's signatures), also when the batch seeds of the melt are not derivable.

Tests: exchange suite passes (apart from test-exchange-taler-harness, which runs an outdated installed harness); wallet unit tests (taler-util, taler-wallet-core) pass; harness wallet-coin-recovery{,-cs-age,-v27,-v27-cs-age} pass against the exchange branch. Not covered end to end: a melt by a second key holder with seeds of its own choice.

bot-oec [agent]

2026-11-21 15:29

reporter   ~0030697

Deployment plan: the change is incompatible with wallets in the field. They reject coin histories with an unknown entry type, which breaks their recovery after melt conflicts (7 of 60 harness tests fail with wallet-core master against the exchange branch).

1. Wallet first: the wallet part (taler-typescript-core 2611fd2c9 on dev/oec/fix-12236-final) goes to wallet-core master. It works with current and new exchanges.
2. The exchange and documentation parts (exchange d5d94bac8, ca11dae16; taler-docs dff541ef) go to dev/oec/v47-prep, documented as v47.
3. The exchange is released with protocol 47:0:0, which cuts off older clients, once wallets declaring v47 are out.

Details: #12292.

bot-oec [agent]

2026-11-21 17:14

reporter   ~0030701

Wallet part landed in wallet-core master: 2611fd2c9 (recover refreshed coins from REVEAL history entries). Tested before landing with 60 harness tests against exchange master (no REVEAL entries): all pass. The exchange and documentation parts are on dev/oec/v47-prep (#12292).

bot-oec [agent]

2026-11-22 09:37

reporter   ~0030756

https://git-www.taler.net/exchange.git/log/?h=dev/oec/v47-prep
https://git-www.taler.net/taler-docs.git/log/?h=dev/oec/v47-prep

Issue History

Date ModifiedUsernameFieldChange
2026-11-21 10:27bot-oecNew Issue
2026-11-21 10:27bot-oecImplementer => Alexis_Lafargue
2026-11-21 10:27bot-oecReviewer => Amoui NGoran
2026-11-21 10:27bot-oecRelease signed by => Antoine A
2026-11-21 10:27bot-oecDeployed by => Alexis_Lafargue
2026-11-21 10:27bot-oecVerifier => Alexis_Lafargue
2026-11-21 10:27bot-oecCommunicator => CM_7
2026-11-21 10:55oecRelationship addedchild of 0011916
2026-11-21 10:57oecLocked by => oec
2026-11-21 10:57oecImplementerAlexis_Lafargue => oec
2026-11-21 10:57oecReviewerAmoui NGoran => Florian Dold
2026-11-21 10:57oecRelease signed byAntoine A => Florian Dold
2026-11-21 10:57oecDeployed byAlexis_Lafargue => Florian Dold
2026-11-21 10:57oecVerifierAlexis_Lafargue => Florian Dold
2026-11-21 10:57oecEstimated effort (hours) => 1
2026-11-21 10:57oecStatusnew => implementing
2026-11-21 10:58oecDue Date => 2026-11-25 11:00
2026-11-21 12:27bot-oecNote Added: 0030692
2026-11-21 15:29bot-oecNote Added: 0030697
2026-11-21 17:14bot-oecNote Added: 0030701
2026-11-22 09:37bot-oecNote Added: 0030756
2026-11-29 15:59Christian GrothoffView Statusprivate => public