View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0012237 | Taler | documentation | public | 2026-11-21 10:27 | 2026-11-29 15:59 |
| Reporter | bot-oec [agent] | Resolution deadline | 2026-11-25 11:00 | ||
| Implementer | oec | Reviewer | Florian Dold | ||
| Estimated effort (hours) | 1 | ||||
| Priority | normal | Severity | text | ||
| Status | reviewing | ||||
| Summary | 0012237: Clause-Schnorr: the relation of `cs_nonce` to `blinding_seed`, its check, and how a wallet obtains the R-values again are not documented | ||||
| Description | `CSCoinEnvelope` (`api-common.rst`) has a field `cs_nonce`, but the documentation states neither that it must equal the nonce derived from `blinding_seed` nor that the exchange checks it. Without the check, the uniqueness of `blinding_seed` does not prevent two challenges under one nonce (TLA+ configuration `models/tla/MCCSNonceUnchecked.cfg`); two challenges signed under one nonce reveal the denomination's private key (EasyCrypt `models/easycrypt/CsNonceReuse.ec`). Neither the reveal responses nor the coin history return the stored `cs_r_values`, and `/blinding-prepare` serves only valid denominations: a wallet restored from a backup can unblind its CS coins only if it persisted the R-values. **Proposed change:** state that `cs_nonce` must equal the nonce derived from `blinding_seed` and that the exchange refuses an envelope whose nonce differs (`spec/ext-cs.md`). Require the wallet to persist the R-values before it sends the request, or have the exchange return them; for refreshed coins, a coin history entry appended at the reveal can carry them with the blinded signatures. **Found by:** the formalization of the Taler protocols; the TLA+ model of Clause-Schnorr nonces (`MCCSNonceUnchecked`), against W6 and RF7 in `spec/ext-cs.md`. | ||||
| Tags | No tags attached. | ||||
| related to | 0012236 | implementing | oec | Refresh (v46): whoever melts an old coin with batch seeds of its own choice keeps the fresh coins from the coin's owner |
| related to | 0012264 | reviewing | Clause-Schnorr planchets are signed under the nonce the client chose; a repeated nonce exposes the denomination private key | |
| related to | 0012269 | implementing | The coin history has no entry with the blinded signatures of a reveal |
| Fix proposed for review: branch dev/oec/fix-12237. - taler-docs 17ab8987: cs_nonce of a CSCoinEnvelope must be the nonce derived from the request's blinding_seed for the coin's index (HKDF with the index as big-endian 32-bit salt, "withdraw-n" or "refresh-n", blinding_seed), the same for every batch; the exchange refuses another nonce (400, TALER_EC_GENERIC_PARAMETER_MALFORMED). Version placeholder vCSNONCE. - exchange 4e256063b (test, see 0012264) and fee5dc76c: /withdraw and /melt check the nonce of every CS envelope before signing. The R-values of refreshed coins come with the REVEAL entry of 0012236 (cs_r_values). For withdrawals the wallet still has to persist the R-values before sending the request; whether the exchange should return them is open. | |
| Fixed in master: - taler-docs f064277e: cs_nonce of a CSCoinEnvelope must be derived from blinding_seed; the exchange refuses another nonce (400). Part of protocol v46. - exchange 4e256063b (test) and fee5dc76c: /withdraw and /melt check the nonce of every CS envelope before signing. Tested before the merge: exchange suite, test-auditor.sh, test-kyc.sh, and 60 wallet harness tests with an unmodified wallet (wallet-core master), including the Clause-Schnorr ones; wallets in the field already derive their nonces this way. | |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-11-21 10:27 | bot-oec | New Issue | |
| 2026-11-21 10:27 | bot-oec | Relationship added | related to 0012236 |
| 2026-11-21 10:27 | bot-oec | Implementer | => Amoui NGoran |
| 2026-11-21 10:27 | bot-oec | Reviewer | => Alexis_Lafargue |
| 2026-11-21 10:27 | bot-oec | Release signed by | => Antoine A |
| 2026-11-21 10:27 | bot-oec | Deployed by | => Amoui NGoran |
| 2026-11-21 10:27 | bot-oec | Verifier | => Amoui NGoran |
| 2026-11-21 10:27 | bot-oec | Communicator | => CM_7 |
| 2026-11-21 10:59 | oec | Locked by | => oec |
| 2026-11-21 10:59 | oec | Implementer | Amoui NGoran => oec |
| 2026-11-21 10:59 | oec | Reviewer | Alexis_Lafargue => Florian Dold |
| 2026-11-21 10:59 | oec | Release signed by | Antoine A => Florian Dold |
| 2026-11-21 10:59 | oec | Deployed by | Amoui NGoran => Florian Dold |
| 2026-11-21 10:59 | oec | Verifier | Amoui NGoran => Florian Dold |
| 2026-11-21 10:59 | oec | Estimated effort (hours) | => 1 |
| 2026-11-21 10:59 | oec | Status | new => implementing |
| 2026-11-21 10:59 | oec | Due Date | => 2026-11-25 11:00 |
| 2026-11-21 12:27 | bot-oec | Note Added: 0030694 | |
| 2026-11-21 16:50 | bot-oec | Note Added: 0030698 | |
| 2026-11-21 16:53 | oec | Locked by | oec => |
| 2026-11-21 16:53 | oec | Status | implementing => reviewing |
| 2026-11-21 22:44 | Christian Grothoff | Severity | major => text |
| 2026-11-29 15:59 | Christian Grothoff | View Status | private => public |