donau

Donation authority for GNU Taler (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit d70853cd08ef917d10d67df7e17c1bfdb16e9616
parent c59bc3e2ae2bc169d0b1898d692166e546004fdd
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 13 Nov 2023 16:28:39 +0100

fix #include

Diffstat:
Msrc/util/charity_signatures.c | 27++++++++++++++-------------
1 file changed, 14 insertions(+), 13 deletions(-)

diff --git a/src/util/charity_signatures.c b/src/util/charity_signatures.c @@ -24,14 +24,14 @@ #include "donau_util.h" #include <gnunet/gnunet_common.h> #include <taler/taler_signatures.h> - +#include "donau_signatures.h" GNUNET_NETWORK_STRUCT_BEGIN /** - * @brief Format used to generate the charity signature on all blinded - * identifiers and key pairs as a agreement of the charity with the + * @brief Format used to generate the charity signature on all blinded + * identifiers and key pairs as a agreement of the charity with the * donation request from the donor. */ struct TALER_BudiKeyPairTrackPS @@ -43,16 +43,16 @@ struct TALER_BudiKeyPairTrackPS struct GNUNET_CRYPTO_EccSignaturePurpose purpose; /** - * num of bkps - */ - unsigned int num_bkp; - - /** * List of BUDI-Key-Pairs. A BUID-Key-Pair contains the BUDI value which must be * signed (blindly) by the Donau. */ struct TALER_BlindedUniqueDonationIdentifierKeyPair bkp; + /** + * num of bkps + */ + uint32_t num_bkp; + }; GNUNET_NETWORK_STRUCT_END @@ -64,9 +64,9 @@ DONAU_charity_budi_key_pair_sign ( struct TALER_CharitySignatureP *charity_sig) { struct TALER_BudiKeyPairTrackPS tps = { - .purpose.size = htonl (sizeof (bkp[0])* num_bkp), + .purpose.size = htonl (sizeof (bkp[0]) * num_bkp), .purpose.purpose = htonl (DONAU_SIGNATURE_CHARITY_DONATION_CONFIRMATION), - .num_bkp = num_bkp, + .num_bkp = htonl (num_bkp), .bkp = *bkp }; @@ -76,16 +76,16 @@ DONAU_charity_budi_key_pair_sign ( } - enum GNUNET_GenericReturnValue DONAU_charity_budi_key_pair_verify ( const unsigned int num_bkp, - const struct DONAU_BlindedUniqueDonationIdentifierKeyPair *bkp[static num_bkp], + const struct DONAU_BlindedUniqueDonationIdentifierKeyPair *bkp[static + num_bkp], const struct TALER_DONAU_CharityPublicKeyP *charity_pub, const struct TALER_CharitySignatureP *charity_sig) { struct TALER_BudiKeyPairTrackPS tps = { - .purpose.size = htonl (sizeof (bkp[0])* num_bkp), + .purpose.size = htonl (sizeof (bkp[0]) * num_bkp), .purpose.purpose = htonl (DONAU_SIGNATURE_CHARITY_DONATION_CONFIRMATION), .num_bkp = num_bkp, .bkp = *bkp @@ -98,4 +98,5 @@ DONAU_charity_budi_key_pair_verify ( &charity_pub->eddsa_pub); } + /* end of charity_signatures.c */