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 2, 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 connected to another peer
52 * using a particular address (LEGACY)
54 #define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_PONG_USING 2
58 * Purpose is to set a session key.
60 #define GNUNET_SIGNATURE_PURPOSE_SET_KEY 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 * Signature in a KBlock of the FS module.
78 #define GNUNET_SIGNATURE_PURPOSE_FS_KBLOCK 6
81 * Signature of content URI placed into a namespace.
83 #define GNUNET_SIGNATURE_PURPOSE_FS_SBLOCK 7
86 * Signature of advertisment for a namespace.
88 #define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK 8
91 * Keyword-based signature of advertisment for a namespace.
93 #define GNUNET_SIGNATURE_PURPOSE_FS_NBLOCK_KSIG 9
98 #define GNUNET_SIGNATURE_PURPOSE_RESOLVER_RESPONSE 10
101 * Signature of an GNUNET_DNS_Record
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
120 #if 0 /* keep Emacsens' auto-indent happy */
127 /* ifndef GNUNET_SIGNATURES_H */
129 /* end of gnunet_signatures.h */