2 This file is part of GNUnet.
3 Copyright (C) 2009 GNUnet e.V.
5 GNUnet is free software: you can redistribute it and/or modify it
6 under the terms of the GNU General Public License as published
7 by the Free Software Foundation, either version 3 of the License,
8 or (at your option) any later version.
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details.
17 * @author Christian Grothoff
20 * Constants for network signatures
22 * @defgroup signatures Network signature definitions
26 #ifndef GNUNET_SIGNATURES_H
27 #define GNUNET_SIGNATURES_H
32 #if 0 /* keep Emacsens' auto-indent happy */
38 * Test signature, not valid for anything other than writing
39 * a test. (Note that the signature verification code will
42 #define GNUNET_SIGNATURE_PURPOSE_TEST 0
45 * Signature for confirming that this peer uses a particular address.
47 #define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_PONG_OWN 1
50 * Signature for confirming that this peer intends to disconnect.
52 #define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DISCONNECT 2
55 * Signature for confirming a key revocation.
57 #define GNUNET_SIGNATURE_PURPOSE_REVOCATION 3
60 * Signature for a namespace/pseudonym advertisement (by
61 * the namespace owner).
63 #define GNUNET_SIGNATURE_PURPOSE_NAMESPACE_ADVERTISEMENT 4
66 * Signature by which a peer affirms that it is
67 * providing a certain bit of content (used
70 #define GNUNET_SIGNATURE_PURPOSE_PEER_PLACEMENT 5
73 * Obsolete, legacy value.
75 #define GNUNET_SIGNATURE_PURPOSE_FS_KBLOCK 6
78 * Obsolete, legacy value.
80 #define GNUNET_SIGNATURE_PURPOSE_FS_SBLOCK 7
83 * Obsolete, legacy value.
85 #define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK 8
88 * Obsolete, legacy value.
90 #define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK_KSIG 9
95 #define GNUNET_SIGNATURE_PURPOSE_RESOLVER_RESPONSE 10
98 * Signature of an GNUNET_DNS_Advertisement
100 #define GNUNET_SIGNATURE_PURPOSE_DNS_RECORD 11
103 * Signature of a chat message.
105 #define GNUNET_SIGNATURE_PURPOSE_CHAT_MESSAGE 12
108 * Signature of confirmation receipt for a chat message.
110 #define GNUNET_SIGNATURE_PURPOSE_CHAT_RECEIPT 13
113 * Signature of a network size estimate message.
115 #define GNUNET_SIGNATURE_PURPOSE_NSE_SEND 14
118 * Signature of a gnunet naming system record block
120 #define GNUNET_SIGNATURE_PURPOSE_GNS_RECORD_SIGN 15
123 * Purpose is to set a session key.
125 #define GNUNET_SIGNATURE_PURPOSE_SET_ECC_KEY 16
128 * UBlock Signature, done using DSS, not ECC
130 #define GNUNET_SIGNATURE_PURPOSE_FS_UBLOCK 17
133 * Accept state in regex DFA. Peer affirms that
134 * he offers the matching service.
136 #define GNUNET_SIGNATURE_PURPOSE_REGEX_ACCEPT 18
139 * Signature of a multicast message sent by the origin.
141 #define GNUNET_SIGNATURE_PURPOSE_MULTICAST_MESSAGE 19
144 * Signature of a conversation ring.
146 #define GNUNET_SIGNATURE_PURPOSE_CONVERSATION_RING 20
149 * Signature for the first round of distributed key generation.
151 #define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DKG1 22
154 * Signature for the second round of distributed key generation.
156 #define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DKG2 23
159 * Signature for cooperatice decryption.
161 #define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DECRYPTION 23
164 * Signature of a multicast request sent by a member.
166 #define GNUNET_SIGNATURE_PURPOSE_MULTICAST_REQUEST 24
169 * Signature for a sensor anomaly report message.
171 #define GNUNET_SIGNATURE_PURPOSE_SENSOR_ANOMALY_REPORT 25
174 * Signature for a GNUid Token
176 #define GNUNET_SIGNATURE_PURPOSE_GNUID_TOKEN 26
179 * Signature for a GNUid Ticket
181 #define GNUNET_SIGNATURE_PURPOSE_GNUID_TICKET 27
184 * Signature for a GNUnet credential
186 #define GNUNET_SIGNATURE_PURPOSE_CREDENTIAL 28
188 #if 0 /* keep Emacsens' auto-indent happy */
195 /* ifndef GNUNET_SIGNATURES_H */
198 /** @} */ /* end of group */
200 /* end of gnunet_signatures.h */