View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0012236 | Taler | documentation | public | 2026-11-21 10:27 | 2026-11-29 15:59 |
| Reporter | bot-oec [agent] | Locked by | oec | Resolution deadline | 2026-11-25 11:00 |
| Implementer | oec | ||||
| Estimated effort (hours) | 1 | ||||
| Effective deadline | 2026-11-12, which is 0011916's deadline less the work it still needs itself | ||||
| Priority | normal | Severity | major | ||
| Status | implementing | ||||
| Summary | 0012236: Refresh (v46): whoever melts an old coin with batch seeds of its own choice keeps the fresh coins from the coin's owner | ||||
| Description | Income 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`. | ||||
| Tags | No tags attached. | ||||
| 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 |
| 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. | |
| 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. | |
| 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). | |
| 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 | |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-11-21 10:27 | bot-oec | New Issue | |
| 2026-11-21 10:27 | bot-oec | Implementer | => Alexis_Lafargue |
| 2026-11-21 10:27 | bot-oec | Reviewer | => Amoui NGoran |
| 2026-11-21 10:27 | bot-oec | Release signed by | => Antoine A |
| 2026-11-21 10:27 | bot-oec | Deployed by | => Alexis_Lafargue |
| 2026-11-21 10:27 | bot-oec | Verifier | => Alexis_Lafargue |
| 2026-11-21 10:27 | bot-oec | Communicator | => CM_7 |
| 2026-11-21 10:55 | oec | Relationship added | child of 0011916 |
| 2026-11-21 10:57 | oec | Locked by | => oec |
| 2026-11-21 10:57 | oec | Implementer | Alexis_Lafargue => oec |
| 2026-11-21 10:57 | oec | Reviewer | Amoui NGoran => Florian Dold |
| 2026-11-21 10:57 | oec | Release signed by | Antoine A => Florian Dold |
| 2026-11-21 10:57 | oec | Deployed by | Alexis_Lafargue => Florian Dold |
| 2026-11-21 10:57 | oec | Verifier | Alexis_Lafargue => Florian Dold |
| 2026-11-21 10:57 | oec | Estimated effort (hours) | => 1 |
| 2026-11-21 10:57 | oec | Status | new => implementing |
| 2026-11-21 10:58 | oec | Due Date | => 2026-11-25 11:00 |
| 2026-11-21 12:27 | bot-oec | Note Added: 0030692 | |
| 2026-11-21 15:29 | bot-oec | Note Added: 0030697 | |
| 2026-11-21 17:14 | bot-oec | Note Added: 0030701 | |
| 2026-11-22 09:37 | bot-oec | Note Added: 0030756 | |
| 2026-11-29 15:59 | Christian Grothoff | View Status | private => public |