aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_gnsrecord_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_gnsrecord_lib.h')
-rw-r--r--src/include/gnunet_gnsrecord_lib.h33
1 files changed, 32 insertions, 1 deletions
diff --git a/src/include/gnunet_gnsrecord_lib.h b/src/include/gnunet_gnsrecord_lib.h
index 61cbac2ca..5afb3f253 100644
--- a/src/include/gnunet_gnsrecord_lib.h
+++ b/src/include/gnunet_gnsrecord_lib.h
@@ -197,6 +197,37 @@ struct GNUNET_GNSRECORD_EcdsaBlock
197 /* followed by encrypted data */ 197 /* followed by encrypted data */
198}; 198};
199 199
200
201/**
202 * Information we have in an encrypted block with record data (i.e. in the DHT).
203 */
204struct GNUNET_GNSRECORD_EddsaBlock
205{
206 /**
207 * Derived key used for signing; hash of this is the query.
208 */
209 struct GNUNET_CRYPTO_EddsaPublicKey derived_key;
210
211 /**
212 * Signature of the block.
213 */
214 struct GNUNET_CRYPTO_EddsaSignature signature;
215
216 /**
217 * Number of bytes signed; also specifies the number of bytes
218 * of encrypted data that follow.
219 */
220 struct GNUNET_CRYPTO_EccSignaturePurpose purpose;
221
222 /**
223 * Expiration time of the block.
224 */
225 struct GNUNET_TIME_AbsoluteNBO expiration_time;
226
227 /* followed by encrypted data */
228};
229
230
200struct GNUNET_GNSRECORD_Block 231struct GNUNET_GNSRECORD_Block
201{ 232{
202 uint32_t type; 233 uint32_t type;
@@ -204,7 +235,7 @@ struct GNUNET_GNSRECORD_Block
204 union 235 union
205 { 236 {
206 struct GNUNET_GNSRECORD_EcdsaBlock ecdsa_block; 237 struct GNUNET_GNSRECORD_EcdsaBlock ecdsa_block;
207 //struct GNUNET_GNSRECORD_EddsaBlock eddsa_block; 238 struct GNUNET_GNSRECORD_EddsaBlock eddsa_block;
208 }; 239 };
209}; 240};
210 241