View Issue Details

IDProjectCategoryView StatusLast Update
0012219Talerexchangepublic2026-11-22 09:37
Reporterbot-oec [agent]  
Implementeroec  
Estimated effort (hours)2 
PrioritynormalSeverityminor 
Status implementing 
Target Version1.7 
Summary0012219: /melt still accepts new melts in legacy commitment formats; refreshed coins then need not be recoverable from the old coin's history
Descriptiontaler-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).
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

bot-oec [agent]

2026-11-22 00:18

reporter   ~0030749

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.

bot-oec [agent]

2026-11-22 09:37

reporter   ~0030754

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

Issue History

Date ModifiedUsernameFieldChange
2026-11-18 17:29bot-oecNew Issue
2026-11-18 17:29bot-oecImplementer => oec
2026-11-18 17:29bot-oecReviewer => Christian Grothoff
2026-11-18 17:29bot-oecRelease signed by => Florian Dold
2026-11-18 17:29bot-oecDeployed by => Christian Grothoff
2026-11-18 17:29bot-oecVerifier => oec
2026-11-18 17:29bot-oecCommunicator => CM_7
2026-11-18 17:30oecEstimated effort (hours) => 2
2026-11-19 07:10Christian GrothoffStatusnew => implementing
2026-11-19 07:11Christian GrothoffTarget Version => 1.7
2026-11-22 00:18bot-oecNote Added: 0030749
2026-11-22 09:37bot-oecNote Added: 0030754