aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-03-28 16:51:54 +0100
committerChristian Grothoff <christian@grothoff.org>2015-03-28 16:51:54 +0100
commitd61dbb310995476ff977bb5da30d8f87dd161b6f (patch)
treeb4b7de6cbe85d080544acb9412d86190ebcd9c2e /src/include
parent15196c9bd4ed871f27b2b9319b03cde3bee29797 (diff)
downloadexchange-d61dbb310995476ff977bb5da30d8f87dd161b6f.tar.xz
fix use of struct TALER_WithdrawRequestPS
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_mintdb_plugin.h26
1 files changed, 23 insertions, 3 deletions
diff --git a/src/include/taler_mintdb_plugin.h b/src/include/taler_mintdb_plugin.h
index 18f3499f3..0cf8ba848 100644
--- a/src/include/taler_mintdb_plugin.h
+++ b/src/include/taler_mintdb_plugin.h
@@ -87,13 +87,33 @@ struct TALER_MINTDB_CollectableBlindcoin
/**
* Denomination key (which coin was generated).
- * FIXME: we should probably instead have the
- * AMOUNT *including* fee in what is being signed
- * as well!
*/
struct TALER_DenominationPublicKey denom_pub;
/**
+ * Value of the coin being minted (matching the denomination key)
+ * plus the transaction fee. We include this in what is being
+ * signed so that we can verify a reserve's remaining total balance
+ * without needing to access the respective denomination key
+ * information each time.
+ */
+ struct TALER_Amount 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_Amount withdraw_fee;
+
+
+ /**
* Public key of the reserve that was drained.
*/
struct TALER_ReservePublicKeyP reserve_pub;