diff options
Diffstat (limited to 'src/include/taler_signatures.h')
-rw-r--r-- | src/include/taler_signatures.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/include/taler_signatures.h b/src/include/taler_signatures.h index 90fa421c3..e72c2ed61 100644 --- a/src/include/taler_signatures.h +++ b/src/include/taler_signatures.h | |||
@@ -29,6 +29,7 @@ | |||
29 | #define TALER_SIGNATURES_H | 29 | #define TALER_SIGNATURES_H |
30 | 30 | ||
31 | #include <gnunet/gnunet_util_lib.h> | 31 | #include <gnunet/gnunet_util_lib.h> |
32 | #include "taler_util.h" | ||
32 | 33 | ||
33 | /** | 34 | /** |
34 | * Purpose for signing public keys signed | 35 | * Purpose for signing public keys signed |
@@ -141,6 +142,45 @@ struct TALER_WithdrawRequest | |||
141 | }; | 142 | }; |
142 | 143 | ||
143 | 144 | ||
145 | /** | ||
146 | * Format used to generate the signature on a request to deposit | ||
147 | * a coin into the account of a merchant. | ||
148 | */ | ||
149 | struct TALER_DepositRequest | ||
150 | { | ||
151 | /** | ||
152 | * Purpose must be #TALER_SIGNATURE_DEPOSIT | ||
153 | */ | ||
154 | struct GNUNET_CRYPTO_EccSignaturePurpose purpose; | ||
155 | |||
156 | /** | ||
157 | * Hash over the contract for which this deposit is made. | ||
158 | */ | ||
159 | struct GNUNET_HashCode h_contract; | ||
160 | |||
161 | /** | ||
162 | * Hash over the wiring information of the merchant. | ||
163 | */ | ||
164 | struct GNUNET_HashCode h_wire; | ||
165 | |||
166 | /** | ||
167 | * Merchant-generated transaction ID to detect duplicate | ||
168 | * transactions. | ||
169 | */ | ||
170 | uint64_t transaction_id GNUNET_PACKED; | ||
171 | |||
172 | /** | ||
173 | * Amount to be deposited. | ||
174 | */ | ||
175 | struct TALER_AmountNBO amount; | ||
176 | |||
177 | /** | ||
178 | * The coin's public key. | ||
179 | */ | ||
180 | struct GNUNET_CRYPTO_EcdsaPublicKey coin_pub; | ||
181 | |||
182 | }; | ||
183 | |||
144 | 184 | ||
145 | /** | 185 | /** |
146 | * FIXME | 186 | * FIXME |