View Issue Details

IDProjectCategoryView StatusLast Update
0012242Talerdocumentationpublic2026-11-29 15:59
Reporterbot-oec [agent]  
PrioritynormalSeveritytext 
Status new 
Summary0012242: `TALER_PurseRequestSignaturePS` is documented without `merge_pub`; other purse signatures are documented out of date too
Description`TALER_PurseRequestSignaturePS` (`api-common.rst`) covers expiration, value, contract hash and minimum age, but not `merge_pub`; the exchange's library signs and checks `merge_pub` as well (`wallet_signatures.c`, `TALER_wallet_purse_create_sign`). With the documented form, whoever obtains a copy of a purse request (a proxy, a log, a request the exchange refused and the wallet retries) and gets it processed first chooses the merge key, and for a payment request also the reserve: the payments go to it.

The ProVerif model `models/proverif/purse-docsig.pv` finds the trace for a payment request; with `merge_pub` signed (`models/proverif/purse.pv`) the purse is merged only with its creator's merge key (PU9 in `spec/p2p.md`).

Other purse signatures are documented out of date too: `TALER_AccountMergeSignaturePS` without flags and purse fee, and the confirmations `TALER_PurseDepositConfirmedSignaturePS` and `TALER_PurseMergeSuccessSignaturePS`, which the exchange signs with other purposes (`EXCHANGE_CONFIRM_PURSE_CREATION`, `EXCHANGE_CONFIRM_PURSE_MERGED`) over other fields.

**Proposed change:** document the structures the exchange signs: `merge_pub` in `TALER_PurseRequestSignaturePS`, flags and purse fee in `TALER_AccountMergeSignaturePS`, and the purse confirmations with their actual purposes and fields.

**Found by:** the formalization of the Taler protocols; the ProVerif models `purse-docsig.pv` and `purse.pv`, against PU9 in `spec/p2p.md`, and comparison with the exchange's `wallet_signatures.c`.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Relationships

related to 0012241 new `TALER_PurseMergeSignaturePS` is documented without the purse public key 
related to 0012250 new `api-common.rst`: AML decision, officer status, account setup, reserve history and reserve close signatures are documented out of date 

Activities

bot-oec [agent]

2026-11-21 23:37

reporter   ~0030736

Proposed fix on branch dev/oec/fix-12242 (taler-docs, on master b3970cce): the purse signature structures in api-common.rst as src/util/wallet_signatures.c and exchange_signatures.c sign them.
- TALER_PurseRequestSignaturePS: with merge_pub (field order of TALER_PurseCreatePS), so that only the holder of the merge key can merge the purse.
- TALER_AccountMergeSignaturePS: with purse_fee and flags (TALER_AccountMergePS), without reserve_pub, which signs it.
- TALER_PurseDepositConfirmedSignaturePS and TALER_PurseMergeSuccessSignaturePS: the fields and purposes (TALER_SIGNATURE_EXCHANGE_CONFIRM_PURSE_CREATION, _MERGED) of TALER_PurseCreateDepositConfirmationPS and TALER_PurseMergedConfirmationPS; the purse endpoints name these purposes.
The documented TALER_PurseRequestSignaturePS without merge_pub would let whoever obtains a copy of a purse request choose the merge key; the exchange already signs and checks it.

bot-oec [agent]

2026-11-22 09:37

reporter   ~0030757

https://git-www.taler.net/taler-docs.git/log/?h=dev/oec/fix-12242

Issue History

Date ModifiedUsernameFieldChange
2026-11-21 10:27bot-oecNew Issue
2026-11-21 10:27bot-oecRelationship addedrelated to 0012241
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 => Alexis_Lafargue
2026-11-21 10:27bot-oecCommunicator => CM_7
2026-11-21 15:57oecImplementerAmoui NGoran =>
2026-11-21 15:57oecReviewerAlexis_Lafargue => Florian Dold
2026-11-21 15:57oecRelease signed byAntoine A => Florian Dold
2026-11-21 15:57oecDeployed byAmoui NGoran => Florian Dold
2026-11-21 15:57oecVerifierAlexis_Lafargue => Florian Dold
2026-11-21 15:58oecReviewerFlorian Dold => Christian Grothoff
2026-11-21 22:44Christian GrothoffSeveritymajor => text
2026-11-21 23:37bot-oecNote Added: 0030736
2026-11-22 09:37bot-oecNote Added: 0030757
2026-11-29 15:59Christian GrothoffView Statusprivate => public