diff options
Diffstat (limited to 'src/include/taler_types.h')
-rw-r--r-- | src/include/taler_types.h | 120 |
1 files changed, 0 insertions, 120 deletions
diff --git a/src/include/taler_types.h b/src/include/taler_types.h deleted file mode 100644 index c6c2c0209..000000000 --- a/src/include/taler_types.h +++ /dev/null | |||
@@ -1,120 +0,0 @@ | |||
1 | /** | ||
2 | * @file include/types.h | ||
3 | * @brief This files defines the various data and message types in TALER. | ||
4 | * @author Sree Harsha Totakura <sreeharsha@totakura.in> | ||
5 | * @author Florian Dold | ||
6 | */ | ||
7 | |||
8 | #ifndef TYPES_H_ | ||
9 | #define TYPES_H_ | ||
10 | |||
11 | #include "taler_rsa.h" | ||
12 | |||
13 | |||
14 | /** | ||
15 | * Public information about a coin. | ||
16 | */ | ||
17 | struct TALER_CoinPublicInfo | ||
18 | { | ||
19 | /** | ||
20 | * The coin's public key. | ||
21 | */ | ||
22 | struct GNUNET_CRYPTO_EcdsaPublicKey coin_pub; | ||
23 | |||
24 | /* | ||
25 | * The public key signifying the coin's denomination. | ||
26 | */ | ||
27 | struct TALER_RSA_PublicKeyBinaryEncoded denom_pub; | ||
28 | |||
29 | /** | ||
30 | * Signature over coin_pub by denom_pub. | ||
31 | */ | ||
32 | struct TALER_RSA_Signature denom_sig; | ||
33 | }; | ||
34 | |||
35 | |||
36 | /** | ||
37 | * Request to withdraw coins from a reserve. | ||
38 | */ | ||
39 | struct TALER_WithdrawRequest | ||
40 | { | ||
41 | /** | ||
42 | * Signature over the rest of the message | ||
43 | * by the withdraw public key. | ||
44 | */ | ||
45 | struct GNUNET_CRYPTO_EddsaSignature sig; | ||
46 | |||
47 | /** | ||
48 | * Purpose must be TALER_SIGNATURE_WITHDRAW. | ||
49 | */ | ||
50 | struct GNUNET_CRYPTO_EccSignaturePurpose purpose; | ||
51 | |||
52 | /** | ||
53 | * Reserve public key. | ||
54 | */ | ||
55 | struct GNUNET_CRYPTO_EddsaPublicKey reserve_pub; | ||
56 | |||
57 | /** | ||
58 | * Denomination public key for the coin that is withdrawn. | ||
59 | */ | ||
60 | struct TALER_RSA_PublicKeyBinaryEncoded denomination_pub; | ||
61 | |||
62 | /** | ||
63 | * Purpose containing coin's blinded public key. | ||
64 | */ | ||
65 | struct TALER_RSA_BlindedSignaturePurpose coin_envelope; | ||
66 | }; | ||
67 | |||
68 | |||
69 | |||
70 | /** | ||
71 | * Data type for messages | ||
72 | */ | ||
73 | struct TALER_MessageHeader | ||
74 | { | ||
75 | /** | ||
76 | * The type of the message in Network-byte order (NBO) | ||
77 | */ | ||
78 | uint16_t type; | ||
79 | |||
80 | /** | ||
81 | * The size of the message in NBO | ||
82 | */ | ||
83 | uint16_t size; | ||
84 | }; | ||
85 | |||
86 | /*****************/ | ||
87 | /* Message types */ | ||
88 | /*****************/ | ||
89 | |||
90 | /** | ||
91 | * The message type of a blind signature | ||
92 | */ | ||
93 | #define TALER_MSG_TYPE_BLINDED_SIGNATURE 1 | ||
94 | |||
95 | /** | ||
96 | * The message type of a blinded message | ||
97 | */ | ||
98 | #define TALER_MSG_TYPE_BLINDED_MESSAGE 2 | ||
99 | |||
100 | /** | ||
101 | * The message type of an unblinded signature | ||
102 | * @FIXME: Not currently used | ||
103 | */ | ||
104 | #define TALER_MSG_TYPE_UNBLINDED_SIGNATURE 3 | ||
105 | |||
106 | /** | ||
107 | * The type of a blinding residue message | ||
108 | * @FIXME: Not currently used | ||
109 | */ | ||
110 | #define TALER_MSG_TYPE_BLINDING_RESIDUE 4 | ||
111 | |||
112 | /** | ||
113 | * The type of a message containing the blinding factor | ||
114 | */ | ||
115 | #define TALER_MSG_TYPE_BLINDING_FACTOR 5 | ||
116 | |||
117 | |||
118 | #endif /* TYPES_H_ */ | ||
119 | |||
120 | /* end of include/types.h */ | ||