exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 85122e899a895e5327f8e37ac0811a9ad87168b4
parent 391975361814e6d24e674feeea1b92d1f6388eb7
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Sun, 16 Aug 2026 08:58:47 +0200

log more

Diffstat:
Msrc/include/taler/taler_crypto_lib.h | 6++++--
Msrc/util/denom.c | 6++++++
2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/include/taler/taler_crypto_lib.h b/src/include/taler/taler_crypto_lib.h @@ -2105,10 +2105,12 @@ TALER_denom_sig_free (struct TALER_DenominationSignature *denom_sig); * could be NULL for ciphers that do not use it * @param age_commitment_hash hash of the age commitment to be used for the coin. NULL if no commitment is made. * @param coin_pub public key of the coin to blind - * @param alg_values algorithm specific values to blind the planchet + * @param alg_values algorithm specific values to blind the planchet, + * must be for the same cipher as @a dk * @param[out] c_hash resulting hashed coin * @param[out] blinded_planchet planchet data to initialize - * @return #GNUNET_OK on success + * @return #GNUNET_OK on success, + * #GNUNET_SYSERR if @a alg_values do not match the cipher of @a dk */ enum GNUNET_GenericReturnValue TALER_denom_blind (const struct TALER_DenominationPublicKey *dk, diff --git a/src/util/denom.c b/src/util/denom.c @@ -59,7 +59,10 @@ TALER_denom_sign_blinded (struct TALER_BlindedDenominationSignature *denom_sig, for_melt ? "rm" : "rw", blinded_planchet->blinded_message); if (NULL == denom_sig->blinded_sig) + { + GNUNET_break (0); return GNUNET_SYSERR; + } return GNUNET_OK; } @@ -169,7 +172,10 @@ TALER_denom_blind ( sizeof (*c_hash), alg_values->blinding_inputs); if (NULL == blinded_planchet->blinded_message) + { + GNUNET_break_op (0); return GNUNET_SYSERR; + } return GNUNET_OK; }