View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0012219 | Taler | exchange | public | 2026-11-18 17:29 | 2026-11-22 09:37 |
| Reporter | bot-oec [agent] | ||||
| Implementer | oec | ||||
| Estimated effort (hours) | 2 | ||||
| Priority | normal | Severity | minor | ||
| Status | implementing | ||||
| Target Version | 1.7 | ||||
| Summary | 0012219: /melt still accepts new melts in legacy commitment formats; refreshed coins then need not be recoverable from the old coin's history | ||||
| Description | taler-exchange-httpd_post-melt.c accepts new melts in two legacy formats: 1. LEGACY_VDOLDPLUS_BROKEN (post-melt.c:1002-1032): rc without transfer_pubs. /reveal-melt then recomputes rc without them, so no transfer public key is ever checked. 2. LEGACY_V27 (post-melt.c:952-965, when transfer_pubs is absent): planchet secrets are derived from the coin's EdDSA signature over the nonce (crypto.c:765). EdDSA signatures are not unique, so the derivation cannot be reproduced. In both cases, cut-and-choose no longer guarantees that the owner of the old coin's private key can re-derive the fresh coins from the coin history plus /reveal-melt. Income transparency then rests only on clients being honest, rather than on the 1/κ bound. Expected: reject new melts unless rc_version == CURRENT. Keep accepting /reveal-melt (and recoup) for legacy melts that are already stored. Note: test_exchange_api.c:434-443 currently expects a legacy melt to succeed and would need updating. A regression test (test_exchange_api_melt_legacy) that asserts the rejection is available on branch dev/oec/melt-legacy-regression. Found by code review at exchange 2a57cbcaf; the regression test confirms that both formats return 200 today. Docs (minor): post-reveal-melt.rst gives the HKDF argument order for the batch seeds as (old_coin_priv, refresh_seed). The code and post-melt.rst use (refresh_seed, old_coin_priv). | ||||
| Tags | No tags attached. | ||||
| Proposed fix on branches dev/oec/fix-12219, on the v47 track (on dev/oec/v47-prep ed8f388f2), since it drops a compatibility path of the protocol: - exchange: post-melt.c answers a new melt in either legacy format (v27 without transfer_pubs; transfer_pubs not in the commitment) with 400. The error is checked for idempotency first, so a replay of a legacy melt the exchange already stored is still answered; reveal and recoup of stored legacy melts are unchanged. - tests: the regression test test_exchange_api_melt_legacy (from dev/oec/melt-legacy-regression) expects 400 for both formats; test_exchange_api no longer expects a legacy melt to succeed. test_exchange_api_{rsa,cs} and test_exchange_api_melt_legacy_{rsa,cs} pass. - taler-docs: post-melt.rst states the refusal since v47. The error is TALER_EC_GENERIC_PARAMETER_MALFORMED with hint "transfer_pubs: legacy refresh commitment"; a dedicated GANA code would be clearer. | |
| https://git-www.taler.net/exchange.git/log/?h=dev/oec/fix-12219 https://git-www.taler.net/taler-docs.git/log/?h=dev/oec/fix-12219 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-18 17:29 | bot-oec | New Issue | |
| 2026-11-18 17:29 | bot-oec | Implementer | => oec |
| 2026-11-18 17:29 | bot-oec | Reviewer | => Christian Grothoff |
| 2026-11-18 17:29 | bot-oec | Release signed by | => Florian Dold |
| 2026-11-18 17:29 | bot-oec | Deployed by | => Christian Grothoff |
| 2026-11-18 17:29 | bot-oec | Verifier | => oec |
| 2026-11-18 17:29 | bot-oec | Communicator | => CM_7 |
| 2026-11-18 17:30 | oec | Estimated effort (hours) | => 2 |
| 2026-11-19 07:10 | Christian Grothoff | Status | new => implementing |
| 2026-11-19 07:11 | Christian Grothoff | Target Version | => 1.7 |
| 2026-11-22 00:18 | bot-oec | Note Added: 0030749 | |
| 2026-11-22 09:37 | bot-oec | Note Added: 0030754 |