diff options
Diffstat (limited to 'src/mint/mint.h')
-rw-r--r-- | src/mint/mint.h | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/src/mint/mint.h b/src/mint/mint.h index a0309e9ea..13719e625 100644 --- a/src/mint/mint.h +++ b/src/mint/mint.h | |||
@@ -91,70 +91,6 @@ struct CollectableBlindcoin | |||
91 | }; | 91 | }; |
92 | 92 | ||
93 | 93 | ||
94 | /** | ||
95 | * Specification for a /deposit operation. | ||
96 | */ | ||
97 | struct Deposit | ||
98 | { | ||
99 | /** | ||
100 | * Information about the coin that is being deposited. | ||
101 | */ | ||
102 | struct TALER_CoinPublicInfo coin; | ||
103 | |||
104 | /** | ||
105 | * ECDSA signature affirming that the customer intends | ||
106 | * this coin to be deposited at the merchant identified | ||
107 | * by @e h_wire in relation to the contract identified | ||
108 | * by @e h_contract. | ||
109 | */ | ||
110 | struct GNUNET_CRYPTO_EcdsaSignature csig; | ||
111 | |||
112 | /** | ||
113 | * Public key of the merchant. Enables later identification | ||
114 | * of the merchant in case of a need to rollback transactions. | ||
115 | */ | ||
116 | struct GNUNET_CRYPTO_EddsaPublicKey merchant_pub; | ||
117 | |||
118 | /** | ||
119 | * Hash over the contract between merchant and customer | ||
120 | * (remains unknown to the Mint). | ||
121 | */ | ||
122 | struct GNUNET_HashCode h_contract; | ||
123 | |||
124 | /** | ||
125 | * Hash of the (canonical) representation of @e wire, used | ||
126 | * to check the signature on the request. Generated by | ||
127 | * the mint from the detailed wire data provided by the | ||
128 | * merchant. | ||
129 | */ | ||
130 | struct GNUNET_HashCode h_wire; | ||
131 | |||
132 | /** | ||
133 | * Detailed wire information for executing the transaction. | ||
134 | */ | ||
135 | const json_t *wire; | ||
136 | |||
137 | /** | ||
138 | * Merchant-generated transaction ID to detect duplicate | ||
139 | * transactions. | ||
140 | */ | ||
141 | uint64_t transaction_id; | ||
142 | |||
143 | /** | ||
144 | * Fraction of the coin's remaining value to be deposited. | ||
145 | * The coin is identified by @e coin_pub. | ||
146 | */ | ||
147 | struct TALER_Amount amount; | ||
148 | |||
149 | /** | ||
150 | * Type of the deposit (also purpose of the signature). Either | ||
151 | * #TALER_SIGNATURE_DEPOSIT or #TALER_SIGNATURE_INCREMENTAL_DEPOSIT. | ||
152 | */ | ||
153 | uint32_t purpose; // FIXME: bad type, use ENUM! | ||
154 | |||
155 | |||
156 | }; | ||
157 | |||
158 | 94 | ||
159 | 95 | ||
160 | 96 | ||