2 This file is part of GNUnet.
3 (C) 2009 Christian Grothoff (and other contributing authors)
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., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
22 * @file include/gnunet_signatures.h
23 * @brief constants for network signatures
24 * @author Christian Grothoff
27 #ifndef GNUNET_SIGNATURES_H
28 #define GNUNET_SIGNATURES_H
33 #if 0 /* keep Emacsens' auto-indent happy */
39 * Test signature, not valid for anything other than writing
40 * a test. (Note that the signature verification code will
43 #define GNUNET_SIGNATURE_PURPOSE_TEST 0
46 * Signature for confirming that this peer uses a particular address.
48 #define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_PONG_OWN 1
51 * Signature for confirming that this peer intends to disconnect.
53 #define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_DISCONNECT 2
56 * Signature for confirming a key revocation.
58 #define GNUNET_SIGNATURE_PURPOSE_REVOCATION 3
61 * Signature for a namespace/pseudonym advertisement (by
62 * the namespace owner).
64 #define GNUNET_SIGNATURE_PURPOSE_NAMESPACE_ADVERTISEMENT 4
67 * Signature by which a peer affirms that it is
68 * providing a certain bit of content (used
71 #define GNUNET_SIGNATURE_PURPOSE_PEER_PLACEMENT 5
74 * Obsolete, legacy value.
76 #define GNUNET_SIGNATURE_PURPOSE_FS_KBLOCK 6
79 * Obsolete, legacy value.
81 #define GNUNET_SIGNATURE_PURPOSE_FS_SBLOCK 7
84 * Obsolete, legacy value.
86 #define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK 8
89 * Obsolete, legacy value.
91 #define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK_KSIG 9
96 #define GNUNET_SIGNATURE_PURPOSE_RESOLVER_RESPONSE 10
99 * Signature of an GNUNET_DNS_Advertisement
101 #define GNUNET_SIGNATURE_PURPOSE_DNS_RECORD 11
104 * Signature of a chat message.
106 #define GNUNET_SIGNATURE_PURPOSE_CHAT_MESSAGE 12
109 * Signature of confirmation receipt for a chat message.
111 #define GNUNET_SIGNATURE_PURPOSE_CHAT_RECEIPT 13
114 * Signature of a network size estimate message.
116 #define GNUNET_SIGNATURE_PURPOSE_NSE_SEND 14
119 * Signature of a gnunet naming system record block
121 #define GNUNET_SIGNATURE_PURPOSE_GNS_RECORD_SIGN 15
124 * Purpose is to set a session key.
126 #define GNUNET_SIGNATURE_PURPOSE_SET_ECC_KEY 16
129 * UBlock Signature, done using DSS, not ECC
131 #define GNUNET_SIGNATURE_PURPOSE_FS_UBLOCK 17
134 * Accept state in regex DFA. Peer affirms that
135 * he offers the matching service.
137 #define GNUNET_SIGNATURE_PURPOSE_REGEX_ACCEPT 18
140 * Signature of a multicast message.
142 #define GNUNET_SIGNATURE_PURPOSE_MULTICAST_MESSAGE 19
145 * Signature of a conversation ring.
147 #define GNUNET_SIGNATURE_PURPOSE_CONVERSATION_RING 20
150 * Key exchange in CADET
152 #define GNUNET_SIGNATURE_PURPOSE_CADET_KX 21
155 * Signature for the first round of distributed key generation.
157 #define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DKG1 22
160 * Signature for the second round of distributed key generation.
162 #define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DKG2 23
165 * Signature for cooperatice decryption.
167 #define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DECRYPTION 23
170 #if 0 /* keep Emacsens' auto-indent happy */
177 /* ifndef GNUNET_SIGNATURES_H */
179 /* end of gnunet_signatures.h */