donau

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

commit ccf1f8883e446620479e4e01c11d3551d050458d
parent d70853cd08ef917d10d67df7e17c1bfdb16e9616
Author: Matyja Lukas Adam <lukas.matyja@students.bfh.ch>
Date:   Mon, 13 Nov 2023 17:37:34 +0100

[header] debugging

Diffstat:
Msrc/include/donau_crypto_lib.h | 27+++++++++++++++++++++++----
Msrc/include/donau_service.h | 20--------------------
2 files changed, 23 insertions(+), 24 deletions(-)

diff --git a/src/include/donau_crypto_lib.h b/src/include/donau_crypto_lib.h @@ -65,7 +65,7 @@ struct TALER_DONAU_PrivateKeyP /** * Signing key for whole batches of BUDI-key-pairs. Used by a Charity. */ -struct DONAU_CharityPublicKeyP +struct TALER_DONAU_CharityPublicKeyP { /** * Donau uses EdDSA for BUDI-key-pair signing @@ -77,7 +77,7 @@ struct DONAU_CharityPublicKeyP /** * Signing key for whole batches of BUDI-key-pairs. Used by a Charity. */ -struct DONAU_CharityPrivateKeyP +struct TALER_DONAU_CharityPrivateKeyP { /** * Donau uses EdDSA for BUDI-key-pair signing @@ -129,7 +129,7 @@ struct TALER_DonauSignatureP /** * @brief Type of signature used by charities */ -struct TALER_DONAU_CharitySignatureP +struct TALER_CharitySignatureP { /** * Charities use EdDSA signatures. @@ -148,6 +148,25 @@ struct TALER_DONAU_BearerToken struct GNUNET_Uuid token; }; +/** + * Information needed for a donation receipt to be signed. + */ +struct TALER_BlindedUniqueDonationIdentifierKeyPair +{ + + /** + * The hash of the donation unit's public key. + */ + struct TALER_DonationUnitHashP h_donation_unit_pub; + + /** + * Donor's blinded donation receipt to be blindly + * signed. + */ + struct TALER_BlindedUniqueDonationIdentifier budi; + +}; + /* ********************* charity eddsa signing ************************** */ @@ -223,7 +242,7 @@ DONAU_donation_statement_verify ( const unsigned int year, const struct TALER_DONAU_HashDonorTaxId *i, const struct TALER_DONAU_PublicKeyP *donau_pub, - const TALER_DonauSignatureP *statement_sig); + const struct TALER_DonauSignatureP *statement_sig); #endif diff --git a/src/include/donau_service.h b/src/include/donau_service.h @@ -486,26 +486,6 @@ struct TALER_BlindedUniqueDonationIdentifier } details; }; - -/** - * Information needed for a donation receipt to be signed. - */ -struct TALER_BlindedUniqueDonationIdentifierKeyPair -{ - - /** - * The hash of the donation unit's public key. - */ - struct TALER_DonationUnitHashP h_donation_unit_pub; - - /** - * Donor's blinded donation receipt to be blindly - * signed. - */ - struct TALER_BlindedUniqueDonationIdentifier budi; - -}; - /** * @brief A Batch Submit Handle */