diff options
Diffstat (limited to 'src/include/taler_signatures.h')
-rw-r--r-- | src/include/taler_signatures.h | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/src/include/taler_signatures.h b/src/include/taler_signatures.h index 238a915c1..90fa421c3 100644 --- a/src/include/taler_signatures.h +++ b/src/include/taler_signatures.h | |||
@@ -29,8 +29,6 @@ | |||
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_rsa.h" | ||
33 | |||
34 | 32 | ||
35 | /** | 33 | /** |
36 | * Purpose for signing public keys signed | 34 | * Purpose for signing public keys signed |
@@ -113,17 +111,12 @@ | |||
113 | 111 | ||
114 | GNUNET_NETWORK_STRUCT_BEGIN | 112 | GNUNET_NETWORK_STRUCT_BEGIN |
115 | 113 | ||
116 | |||
117 | /** | 114 | /** |
118 | * Request to withdraw coins from a reserve. | 115 | * Format used for to generate the signature on a request to withdraw |
116 | * coins from a reserve. | ||
119 | */ | 117 | */ |
120 | struct TALER_WithdrawRequest | 118 | struct TALER_WithdrawRequest |
121 | { | 119 | { |
122 | /** | ||
123 | * Signature over the rest of the message | ||
124 | * by the withdraw public key. | ||
125 | */ | ||
126 | struct GNUNET_CRYPTO_EddsaSignature sig; | ||
127 | 120 | ||
128 | /** | 121 | /** |
129 | * Purpose must be #TALER_SIGNATURE_WITHDRAW. | 122 | * Purpose must be #TALER_SIGNATURE_WITHDRAW. |
@@ -131,24 +124,20 @@ struct TALER_WithdrawRequest | |||
131 | struct GNUNET_CRYPTO_EccSignaturePurpose purpose; | 124 | struct GNUNET_CRYPTO_EccSignaturePurpose purpose; |
132 | 125 | ||
133 | /** | 126 | /** |
134 | * Reserve public key. | 127 | * Reserve public key (which reserve to withdraw from). This is |
128 | * the public key which must match the signature. | ||
135 | */ | 129 | */ |
136 | struct GNUNET_CRYPTO_EddsaPublicKey reserve_pub; | 130 | struct GNUNET_CRYPTO_EddsaPublicKey reserve_pub; |
137 | 131 | ||
138 | /** | 132 | /** |
139 | * Denomination public key for the coin that is withdrawn. | 133 | * Hash of the denomination public key for the coin that is withdrawn. |
140 | * FIXME: change to the hash of the public key (so this | ||
141 | * is fixed-size). | ||
142 | */ | 134 | */ |
143 | struct TALER_RSA_PublicKeyBinaryEncoded denomination_pub; | 135 | struct GNUNET_HashCode h_denomination_pub; |
144 | 136 | ||
145 | /** | 137 | /** |
146 | * Purpose containing coin's blinded public key. | 138 | * Hash of the (blinded) message to be signed by the Mint. |
147 | * | ||
148 | * FIXME: this should be explicitly a variable-size field with the | ||
149 | * (blinded) message to be signed by the Mint. | ||
150 | */ | 139 | */ |
151 | struct TALER_RSA_BlindedSignaturePurpose coin_envelope; | 140 | struct GNUNET_HashCode h_coin_envelope; |
152 | }; | 141 | }; |
153 | 142 | ||
154 | 143 | ||
@@ -178,7 +167,8 @@ struct TALER_MINT_DenomKeyIssue | |||
178 | struct GNUNET_TIME_AbsoluteNBO start; | 167 | struct GNUNET_TIME_AbsoluteNBO start; |
179 | struct GNUNET_TIME_AbsoluteNBO expire_withdraw; | 168 | struct GNUNET_TIME_AbsoluteNBO expire_withdraw; |
180 | struct GNUNET_TIME_AbsoluteNBO expire_spend; | 169 | struct GNUNET_TIME_AbsoluteNBO expire_spend; |
181 | struct TALER_RSA_PublicKeyBinaryEncoded denom_pub; | 170 | // FIXME: does not work like this: |
171 | struct GNUNET_CRYPTO_rsa_PublicKey * denom_pub; | ||
182 | struct TALER_AmountNBO value; | 172 | struct TALER_AmountNBO value; |
183 | struct TALER_AmountNBO fee_withdraw; | 173 | struct TALER_AmountNBO fee_withdraw; |
184 | struct TALER_AmountNBO fee_deposit; | 174 | struct TALER_AmountNBO fee_deposit; |
@@ -238,4 +228,3 @@ struct RefreshMeltConfirmSignRequestBody | |||
238 | GNUNET_NETWORK_STRUCT_END | 228 | GNUNET_NETWORK_STRUCT_END |
239 | 229 | ||
240 | #endif | 230 | #endif |
241 | |||