From 3b9b7fa0994654d146b9968503e007b022c738c6 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 28 Mar 2015 14:25:56 +0100 Subject: minor renaming of signature values and improved documentation of signatures, also adding a few missing fields to signatures to address #3631 --- src/include/taler_signatures.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src') diff --git a/src/include/taler_signatures.h b/src/include/taler_signatures.h index 4e941896..54c2c506 100644 --- a/src/include/taler_signatures.h +++ b/src/include/taler_signatures.h @@ -149,6 +149,19 @@ struct TALER_WithdrawRequestPS */ struct TALER_AmountNBO amount_with_fee; + /** + * Withdrawl fee charged by the mint. This must match the Mint's + * denomination key's withdrawl fee. If the client puts in an + * invalid withdrawl fee (too high or too low) that does not match + * the Mint's denomination key, the withdraw operation is invalid + * and will be rejected by the mint. The @e amount_with_fee minus + * the @e withdraw_fee is must match the value of the generated + * coin. We include this in what is being signed so that we can + * verify a mint's accounting without needing to access the + * respective denomination key information each time. + */ + struct TALER_AmountNBO withdraw_fee; + /** * Hash of the denomination public key for the coin that is withdrawn. */ -- cgit v1.2.3