View Issue Details

IDProjectCategoryView StatusLast Update
0012241Talerdocumentationpublic2026-11-29 15:59
Reporterbot-oec [agent]  
PrioritynormalSeveritytext 
Status new 
Summary0012241: `TALER_PurseMergeSignaturePS` is documented without the purse public key
Description`api-common.rst` documents the merge key's signature over `merge_timestamp` and `h_wire` only; the exchange's library (`wallet_signatures.c`, `TALER_PurseMergePS`) also signs `purse_pub`. The documented form is not exploitable, since the reserve's signature (`TALER_AccountMergeSignaturePS`) binds the purse (the ProVerif model `models/proverif/purse-docmerge.pv` proves PU1 of `spec/p2p.md` with it as well), but the documentation should match the code.

`PurseCreateConflict` also describes `purse_sig` as a signature over `TALER_PurseMergeSignaturePS`; it is over `TALER_PurseRequestSignaturePS`.

**Proposed change:** add `purse_pub` to `TALER_PurseMergeSignaturePS` as the exchange signs it, and describe `PurseCreateConflict.purse_sig` as a signature over `TALER_PurseRequestSignaturePS`.

**Found by:** the formalization of the Taler protocols; comparison of `api-common.rst` with the exchange's `wallet_signatures.c`, and the ProVerif model `purse-docmerge.pv`.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Relationships

related to 0012242 new `TALER_PurseRequestSignaturePS` is documented without `merge_pub`; other purse signatures are documented out of date too 
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:17

reporter   ~0030722

Proposed patch (taler-docs master b3970cce): TALER_PurseMergeSignaturePS gets purse_pub, in the place where TALER_PurseMergePS in src/util/wallet_signatures.c has it; PurseCreateConflict.purse_sig is a signature over TALER_PurseRequestSignaturePS (purpose TALER_SIGNATURE_WALLET_PURSE_CREATE).

diff --git a/core/api-common.rst b/core/api-common.rst
index dc97ac42..47f5905a 100644
--- a/core/api-common.rst
+++ b/core/api-common.rst
@@ -2233,6 +2233,7 @@ within the
      */
     struct GNUNET_CRYPTO_EccSignaturePurpose purpose;
     struct GNUNET_TIME_AbsoluteNBO merge_timestamp;
+ struct TALER_PurseContractPublicKeyP purse_pub;
     struct TALER_NormalizedPaytoHashP h_wire;
   };
 
diff --git a/core/exchange/post-purses-PURSE_PUB-create.rst b/core/exchange/post-purses-PURSE_PUB-create.rst
index bb0dd055..82453c2c 100644
--- a/core/exchange/post-purses-PURSE_PUB-create.rst
+++ b/core/exchange/post-purses-PURSE_PUB-create.rst
@@ -196,8 +196,8 @@
       purse_expiration: Timestamp;
 
       // EdDSA signature of the purse over
- // `TALER_PurseMergeSignaturePS` of
- // purpose ``TALER_SIGNATURE_WALLET_PURSE_MERGE``
+ // `TALER_PurseRequestSignaturePS` of
+ // purpose ``TALER_SIGNATURE_WALLET_PURSE_CREATE``
       // confirming that the
       // above details hold for this purse.
       purse_sig: EddsaSignature;

Issue History

Date ModifiedUsernameFieldChange
2026-11-21 10:27bot-oecNew Issue
2026-11-21 10:27bot-oecImplementer => Alexis_Lafargue
2026-11-21 10:27bot-oecReviewer => Amoui NGoran
2026-11-21 10:27bot-oecRelease signed by => Antoine A
2026-11-21 10:27bot-oecDeployed by => Alexis_Lafargue
2026-11-21 10:27bot-oecVerifier => Stefan
2026-11-21 10:27bot-oecCommunicator => CM_7
2026-11-21 15:57oecImplementerAlexis_Lafargue =>
2026-11-21 15:57oecReviewerAmoui NGoran => Florian Dold
2026-11-21 15:57oecRelease signed byAntoine A => Florian Dold
2026-11-21 15:57oecDeployed byAlexis_Lafargue => Florian Dold
2026-11-21 15:57oecVerifierStefan => Florian Dold
2026-11-21 22:44Christian GrothoffSeverityminor => text
2026-11-21 23:17bot-oecNote Added: 0030722
2026-11-29 15:59Christian GrothoffView Statusprivate => public