commit f3d363b808571b1747a12c4730d967120ade183d
parent 45a7acd401e824c128fb2c05ef52140a32bea8ed
Author: bohdan-potuzhnyi <bohdan.potuzhnyi@gmail.com>
Date: Tue, 1 Sep 2026 11:07:45 +0200
small fix, to follow newest exchange
Diffstat:
3 files changed, 34 insertions(+), 3 deletions(-)
diff --git a/src/include/donau_crypto_lib.h b/src/include/donau_crypto_lib.h
@@ -573,6 +573,18 @@ TALER_donation_unit_pub_verify (const struct
/* ********************* client blind/unblind ************************** */
/**
+ * Derive the nonce for a Clause-Schnorr issue request.
+ *
+ * @param ps master secret for the blinded UDI
+ * @param[out] nonce nonce for the CS issue request
+ */
+void
+DONAU_cs_issue_nonce_derive (
+ const struct DONAU_BudiMasterSecretP *ps,
+ struct GNUNET_CRYPTO_CsSessionNonce *nonce);
+
+
+/**
* Create a blinding secret @a bks given the client's @a ps and the alg_values
* from the exchange.
*
diff --git a/src/testing/testing_api_cmd_issue_receipts.c b/src/testing/testing_api_cmd_issue_receipts.c
@@ -488,9 +488,12 @@ status_run (void *cls,
{
struct CSR_Data *csr_data = GNUNET_new (struct CSR_Data);
- TALER_cs_withdraw_nonce_derive ( // FIXME: write new method
- (struct TALER_PlanchetMasterSecretP *) &ps,
- &csr_data->nonce.cs_nonce);
+ // Trying to make it compile after 1e79313 on exchange
+ // TALER_cs_withdraw_nonce_derive ( // FIXME: write new method
+ // (struct TALER_PlanchetMasterSecretP *) &ps,
+ // &csr_data->nonce.cs_nonce);
+ DONAU_cs_issue_nonce_derive (&ps, // FIXME: I assume same fixme as before...
+ &csr_data->nonce.cs_nonce);
csr_data->ss = ss;
csr_data->position = cnt;
csr_data->csr_handle = DONAU_csr_issue (
diff --git a/src/util/donau_crypto.c b/src/util/donau_crypto.c
@@ -229,6 +229,22 @@ DONAU_donation_unit_sig_unblind (
void
+DONAU_cs_issue_nonce_derive (
+ const struct DONAU_BudiMasterSecretP *ps,
+ struct GNUNET_CRYPTO_CsSessionNonce *nonce)
+{
+ GNUNET_assert (GNUNET_YES ==
+ GNUNET_CRYPTO_hkdf_gnunet (
+ nonce,
+ sizeof (*nonce),
+ "n",
+ strlen ("n"),
+ ps,
+ sizeof (*ps)));
+}
+
+
+void
DONAU_budi_secret_create (
const struct DONAU_BudiMasterSecretP *ps,
const struct DONAU_BatchIssueValues *alg_values,