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
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 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 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
22 * @author Christian Grothoff
25 * Constants for network signatures
27 * @defgroup signatures Network signature definitions
31 #ifndef GNUNET_SIGNATURES_H
32 #define GNUNET_SIGNATURES_H
37 #if 0 /* keep Emacsens' auto-indent happy */
43 * Test signature, not valid for anything other than writing
44 * a test. (Note that the signature verification code will
47 #define GNUNET_SIGNATURE_PURPOSE_TEST 0
50 * Signature for confirming that this peer uses a particular address.
52 #define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_PONG_OWN 1
55 * Signature for confirming that this peer intends to disconnect.
57 #define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DISCONNECT 2
60 * Signature for confirming a key revocation.
62 #define GNUNET_SIGNATURE_PURPOSE_REVOCATION 3
65 * Signature for a namespace/pseudonym advertisement (by
66 * the namespace owner).
68 #define GNUNET_SIGNATURE_PURPOSE_NAMESPACE_ADVERTISEMENT 4
71 * Signature by which a peer affirms that it is
72 * providing a certain bit of content (used
75 #define GNUNET_SIGNATURE_PURPOSE_PEER_PLACEMENT 5
78 * Obsolete, legacy value.
80 #define GNUNET_SIGNATURE_PURPOSE_FS_KBLOCK 6
83 * Obsolete, legacy value.
85 #define GNUNET_SIGNATURE_PURPOSE_FS_SBLOCK 7
88 * Obsolete, legacy value.
90 #define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK 8
93 * Obsolete, legacy value.
95 #define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK_KSIG 9
100 #define GNUNET_SIGNATURE_PURPOSE_RESOLVER_RESPONSE 10
103 * Signature of an GNUNET_DNS_Advertisement
105 #define GNUNET_SIGNATURE_PURPOSE_DNS_RECORD 11
108 * Signature of a chat message.
110 #define GNUNET_SIGNATURE_PURPOSE_CHAT_MESSAGE 12
113 * Signature of confirmation receipt for a chat message.
115 #define GNUNET_SIGNATURE_PURPOSE_CHAT_RECEIPT 13
118 * Signature of a network size estimate message.
120 #define GNUNET_SIGNATURE_PURPOSE_NSE_SEND 14
123 * Signature of a gnunet naming system record block
125 #define GNUNET_SIGNATURE_PURPOSE_GNS_RECORD_SIGN 15
128 * Purpose is to set a session key.
130 #define GNUNET_SIGNATURE_PURPOSE_SET_ECC_KEY 16
133 * UBlock Signature, done using DSS, not ECC
135 #define GNUNET_SIGNATURE_PURPOSE_FS_UBLOCK 17
138 * Accept state in regex DFA. Peer affirms that
139 * he offers the matching service.
141 #define GNUNET_SIGNATURE_PURPOSE_REGEX_ACCEPT 18
144 * Signature of a multicast message sent by the origin.
146 #define GNUNET_SIGNATURE_PURPOSE_MULTICAST_MESSAGE 19
149 * Signature of a conversation ring.
151 #define GNUNET_SIGNATURE_PURPOSE_CONVERSATION_RING 20
154 * Key exchange in CADET
156 #define GNUNET_SIGNATURE_PURPOSE_CADET_KX 21
159 * Signature for the first round of distributed key generation.
161 #define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DKG1 22
164 * Signature for the second round of distributed key generation.
166 #define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DKG2 23
169 * Signature for cooperatice decryption.
171 #define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DECRYPTION 23
174 * Signature of a multicast request sent by a member.
176 #define GNUNET_SIGNATURE_PURPOSE_MULTICAST_REQUEST 24
179 * Signature for a sensor anomaly report message.
181 #define GNUNET_SIGNATURE_PURPOSE_SENSOR_ANOMALY_REPORT 25
184 * Signature for a GNUid Token
186 #define GNUNET_SIGNATURE_PURPOSE_GNUID_TOKEN 26
189 * Signature for a GNUid Ticket
191 #define GNUNET_SIGNATURE_PURPOSE_GNUID_TICKET 27
193 #if 0 /* keep Emacsens' auto-indent happy */
200 /* ifndef GNUNET_SIGNATURES_H */
203 /** @} */ /* end of group */
205 /* end of gnunet_signatures.h */