donau

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

commit aebd8850fa9747cf516cd9c470d320b7e265bf5b
parent 3368b0cd5db37549a4637d5a9f342f8119f11edb
Author: Matyja Lukas Adam <lukas.matyja@students.bfh.ch>
Date:   Tue, 17 Oct 2023 14:47:40 +0200

[header] some changes

Diffstat:
Msrc/include/taler_donau_service.h | 35+++++++++++++++--------------------
1 file changed, 15 insertions(+), 20 deletions(-)

diff --git a/src/include/taler_donau_service.h b/src/include/taler_donau_service.h @@ -501,7 +501,7 @@ struct TALER_BlindedDonationEnvelope /** * Information needed for a donation receipt to be signed. */ -struct TALER_DONAU_BlindedDonationReceipt +struct TALER_DONAU_BlindedUniqueDonationIdentifier { /** @@ -537,9 +537,9 @@ struct TALER_DONAU_BatchIssueReceiptHandle; /** * Structure with information about a batch - * operation's result. + * of issue receipts. */ -struct TALER_DONAU_BatchIssueReceiptResult +struct TALER_DONAU_BatchIssueReceipts { /** * HTTP response data @@ -587,13 +587,13 @@ struct TALER_DONAU_BatchIssueReceiptResult * @param dr response details */ typedef void -(*TALER_DONAU_BatchIssueReceiptResultCallback) ( +(*TALER_DONAU_BatchIssueReceiptsCallback) ( void *cls, - const struct TALER_DONAU_BatchIssueReceiptResult *dr); + const struct TALER_DONAU_BatchIssueReceipts*dr); /** - * Submit a batch of permissions to the donau and get the + * Submit a batch of issue receipts to the donau and get the * donau's response. This API is typically used by a charity. Note that * while we return the response verbatim to the caller for further processing, * we do already verify that the response is well-formed (i.e. that signatures @@ -610,8 +610,8 @@ typedef void * @param url donau base URL * @param keys donau keys * @param charity_priv details about the contract the is for - * @param num_bdrs length of the @a bdr array - * @param bdr array with details about the blinded donation receipts + * @param num_bdids length of the @a bdid array + * @param bdid array with details about the blinded donation envelopes * @param cb the callback to call when a reply for this request is available * @param cb_cls closure for the above callback * @param[out] ec if NULL is returned, set to the error code explaining why the operation failed @@ -624,16 +624,16 @@ TALER_DONAU_charity_issue_receipt ( const char *url, struct TALER_DONAU_Keys *keys, const struct TALER_DONAU_CharityPrivateKey *charity_priv, - unsigned int num_bdrs, - const struct TALER_DONAU_BlindedDonationReceipts bdr[static num_bdrs], - TALER_DONAU_BatchIssueReceiptResultCallback cb, + unsigned int num_bdids, + const struct TALER_DONAU_BlindedUniqueDonationIdentifier bdid[static num_bdids], + TALER_DONAU_BatchIssueReceiptsCallback cb, void *cb_cls); /** - * Cancel a batch permission request. This function cannot be used + * Cancel a batch issue receipt request. This function cannot be used * on a request handle if a response is already served for it. * - * @param[in] the deposit permission request handle + * @param[in] the issue receipt request handle */ void TALER_DONAU_charity_issue_receipt_cancel ( @@ -868,9 +868,9 @@ TALER_DONAU_csr_batch_issue_cancel ( /* ********************* GET /charities/$CHARITY_ID *********************** */ /** - * Charity issue receipt transaction. + * A Charity */ -struct CharityIssueReceiptTransaction +struct Charity { /** * Amount issued. @@ -883,11 +883,6 @@ struct CharityIssueReceiptTransaction unsigned int year; /** - * Hash of the BDIDs to be signed - */ - struct TALER_EnvelopeHash h_blinded_bdids; - - /** * Charity's eddsa signature. */ struct TALER_DonauSignatureP donau_sig;