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 Affero 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.
15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 * @author Christian Grothoff
23 * Constants for network signatures
25 * @defgroup signatures Network signature definitions
29 #ifndef GNUNET_SIGNATURES_H
30 #define GNUNET_SIGNATURES_H
35 #if 0 /* keep Emacsens' auto-indent happy */
41 * Test signature, not valid for anything other than writing
42 * a test. (Note that the signature verification code will
45 #define GNUNET_SIGNATURE_PURPOSE_TEST 0
48 * Signature for confirming that this peer uses a particular address.
50 #define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_PONG_OWN 1
53 * Signature for confirming that this peer intends to disconnect.
55 #define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DISCONNECT 2
58 * Signature for confirming a key revocation.
60 #define GNUNET_SIGNATURE_PURPOSE_REVOCATION 3
63 * Signature for a namespace/pseudonym advertisement (by
64 * the namespace owner).
66 #define GNUNET_SIGNATURE_PURPOSE_NAMESPACE_ADVERTISEMENT 4
69 * Signature by which a peer affirms that it is
70 * providing a certain bit of content (used
73 #define GNUNET_SIGNATURE_PURPOSE_PEER_PLACEMENT 5
76 * Obsolete, legacy value.
78 #define GNUNET_SIGNATURE_PURPOSE_FS_KBLOCK 6
81 * Obsolete, legacy value.
83 #define GNUNET_SIGNATURE_PURPOSE_FS_SBLOCK 7
86 * Obsolete, legacy value.
88 #define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK 8
91 * Obsolete, legacy value.
93 #define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK_KSIG 9
98 #define GNUNET_SIGNATURE_PURPOSE_RESOLVER_RESPONSE 10
101 * Signature of an GNUNET_DNS_Advertisement
103 #define GNUNET_SIGNATURE_PURPOSE_DNS_RECORD 11
106 * Signature of a chat message.
108 #define GNUNET_SIGNATURE_PURPOSE_CHAT_MESSAGE 12
111 * Signature of confirmation receipt for a chat message.
113 #define GNUNET_SIGNATURE_PURPOSE_CHAT_RECEIPT 13
116 * Signature of a network size estimate message.
118 #define GNUNET_SIGNATURE_PURPOSE_NSE_SEND 14
121 * Signature of a gnunet naming system record block
123 #define GNUNET_SIGNATURE_PURPOSE_GNS_RECORD_SIGN 15
126 * Purpose is to set a session key.
128 #define GNUNET_SIGNATURE_PURPOSE_SET_ECC_KEY 16
131 * UBlock Signature, done using DSS, not ECC
133 #define GNUNET_SIGNATURE_PURPOSE_FS_UBLOCK 17
136 * Accept state in regex DFA. Peer affirms that
137 * it offers the matching service.
139 #define GNUNET_SIGNATURE_PURPOSE_REGEX_ACCEPT 18
142 * Signature of a multicast message sent by the origin.
144 #define GNUNET_SIGNATURE_PURPOSE_MULTICAST_MESSAGE 19
147 * Signature of a conversation ring.
149 #define GNUNET_SIGNATURE_PURPOSE_CONVERSATION_RING 20
152 * Signature for the first round of distributed key generation.
154 #define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DKG1 22
157 * Signature for the second round of distributed key generation.
159 #define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DKG2 23
162 * Signature for cooperatice decryption.
164 #define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DECRYPTION 23
167 * Signature of a multicast request sent by a member.
169 #define GNUNET_SIGNATURE_PURPOSE_MULTICAST_REQUEST 24
172 * Signature for a sensor anomaly report message.
174 #define GNUNET_SIGNATURE_PURPOSE_SENSOR_ANOMALY_REPORT 25
177 * Signature for a GNUid Token
179 #define GNUNET_SIGNATURE_PURPOSE_GNUID_TOKEN 26
182 * Signature for a GNUid Ticket
184 #define GNUNET_SIGNATURE_PURPOSE_GNUID_TICKET 27
187 * Signature for a GNUnet credential
189 #define GNUNET_SIGNATURE_PURPOSE_CREDENTIAL 28
191 #if 0 /* keep Emacsens' auto-indent happy */
198 /* ifndef GNUNET_SIGNATURES_H */
201 /** @} */ /* end of group */
203 /* end of gnunet_signatures.h */