commit db30e16e83d232e343c5e1bb99bc90a8c9f8260f parent 0183da0b57c70422fdfa83613728b84f5ee125fd Author: Matyja Lukas Adam <lukas.matyja@students.bfh.ch> Date: Tue, 10 Oct 2023 14:36:59 +0200 [header] work on implementation of batch issue receipt api Diffstat:
| M | src/include/taler_donau_service.h | | | 45 | ++++++++++++++++++++++++++++++++++++++++++--- |
1 file changed, 42 insertions(+), 3 deletions(-)
diff --git a/src/include/taler_donau_service.h b/src/include/taler_donau_service.h @@ -817,7 +817,24 @@ TALER_DONAU_charitys_get_cancel ( /* ********************* POST /charitys/$CHARITY_ID/batch-issue *********************** */ /** - * @brief A /charitys/$CHARITY_PUB/batch-issue Handle + * A BDID blinded unique donation identifier. + */ +struct TALER_DONAU_BlindedDonationIdentifier +{ + /** + * The hash of the donation unit's public key + */ + struct TALER_DonationUnitHashP h_donation_unit_pub; + + /** + * The blinded UDID unique donation identifier and the corresponding + * donation unit public key. + */ + struct TALER_DONAU_BlindedUniqueIdentifier blinded_identifier; +} + +/** + * @brief A /charitys/$CHARITY_ID/batch-issue Handle */ struct TALER_DONAU_BatchIssueHandle; @@ -828,11 +845,33 @@ struct TALER_DONAU_BatchIssueHandle; struct TALER_DONAU_BatchIssueInput { /** - * Amount issued. + * Year of validity. */ - struct TALER_Amount amount; + unsigned int year; + + /** + * Hash of the BDIDs to be signed + */ + struct TALER_DONAU_BlindedDonationIdentifier *bdids; + + /** + * Charity's eddsa signature. + */ + struct TALER_DonauSignatureP donau_sig; /** + * Length of BDIDs. + */ + unsigned int bdids_length; +} + +/** + * How a successful charity issue request is stored. + */ +struct TALER_DONAU_BatchIssueStore +{ + + /** * Year of validity. */ unsigned int year;