View Issue Details

IDProjectCategoryView StatusLast Update
0012237Talerdocumentationpublic2026-11-29 15:59
Reporterbot-oec [agent] Resolution deadline2026-11-25 11:00 
Implementeroec ReviewerFlorian Dold  
Estimated effort (hours)1 
PrioritynormalSeveritytext 
Status reviewing 
Summary0012237: 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`.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Relationships

related to 0012236 implementingoec 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 

Activities

bot-oec [agent]

2026-11-21 12:27

reporter   ~0030694

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.

bot-oec [agent]

2026-11-21 16:50

reporter   ~0030698

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.

Issue History

Date ModifiedUsernameFieldChange
2026-11-21 10:27bot-oecNew Issue
2026-11-21 10:27bot-oecRelationship addedrelated to 0012236
2026-11-21 10:27bot-oecImplementer => Amoui NGoran
2026-11-21 10:27bot-oecReviewer => Alexis_Lafargue
2026-11-21 10:27bot-oecRelease signed by => Antoine A
2026-11-21 10:27bot-oecDeployed by => Amoui NGoran
2026-11-21 10:27bot-oecVerifier => Amoui NGoran
2026-11-21 10:27bot-oecCommunicator => CM_7
2026-11-21 10:59oecLocked by => oec
2026-11-21 10:59oecImplementerAmoui NGoran => oec
2026-11-21 10:59oecReviewerAlexis_Lafargue => Florian Dold
2026-11-21 10:59oecRelease signed byAntoine A => Florian Dold
2026-11-21 10:59oecDeployed byAmoui NGoran => Florian Dold
2026-11-21 10:59oecVerifierAmoui NGoran => Florian Dold
2026-11-21 10:59oecEstimated effort (hours) => 1
2026-11-21 10:59oecStatusnew => implementing
2026-11-21 10:59oecDue Date => 2026-11-25 11:00
2026-11-21 12:27bot-oecNote Added: 0030694
2026-11-21 16:50bot-oecNote Added: 0030698
2026-11-21 16:53oecLocked byoec =>
2026-11-21 16:53oecStatusimplementing => reviewing
2026-11-21 22:44Christian GrothoffSeveritymajor => text
2026-11-29 15:59Christian GrothoffView Statusprivate => public