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/>.
18 SPDX-License-Identifier: AGPL3.0-or-later
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 * it 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 * Signature for the first round of distributed key generation.
156 #define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DKG1 21
159 * Signature for the second round of distributed key generation.
161 #define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DKG2 22
164 * Signature for cooperatice decryption.
166 #define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DECRYPTION 23
169 * Signature of a multicast request sent by a member.
171 #define GNUNET_SIGNATURE_PURPOSE_MULTICAST_REQUEST 24
174 * Signature for a sensor anomaly report message.
176 #define GNUNET_SIGNATURE_PURPOSE_SENSOR_ANOMALY_REPORT 25
179 * Signature for a GNUid Token
181 #define GNUNET_SIGNATURE_PURPOSE_GNUID_TOKEN 26
184 * Signature for a GNUid Ticket
186 #define GNUNET_SIGNATURE_PURPOSE_RECLAIM_CODE_SIGN 27
189 * Signature for a GNUnet credential
191 #define GNUNET_SIGNATURE_PURPOSE_CREDENTIAL 28
194 * Signature by a peer affirming that this is one of its
195 * addresses (for the given time period).
197 #define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_ADDRESS 29
200 * Signature by a peer affirming that the given ephemeral
201 * key is currently in use by that peer's transport service.
203 #define GNUNET_SIGNATURE_PURPOSE_TRANSPORT_EPHEMERAL 30
206 * Signature used by TCP communicator handshake,
208 #define GNUNET_SIGNATURE_COMMUNICATOR_TCP_HANDSHAKE 31
210 #if 0 /* keep Emacsens' auto-indent happy */
217 /* ifndef GNUNET_SIGNATURES_H */
220 /** @} */ /* end of group */
222 /* end of gnunet_signatures.h */