[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 07/31: towards more expirations
From: |
gnunet |
Subject: |
[gnunet] 07/31: towards more expirations |
Date: |
Wed, 22 Apr 2020 21:52:58 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
commit eb6b547e243144f27749811c15b6cce90e03aaa7
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Sat Apr 18 21:14:03 2020 +0200
towards more expirations
---
src/revocation/revocation.h | 8 ++++----
src/revocation/revocation_api.c | 10 +++++-----
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/revocation/revocation.h b/src/revocation/revocation.h
index 184f58e0a..d7b9cc139 100644
--- a/src/revocation/revocation.h
+++ b/src/revocation/revocation.h
@@ -89,14 +89,14 @@ struct RevokeMessage
uint32_t reserved GNUNET_PACKED;
/**
- * Timestamp
+ * Number that causes a hash collision with the @e public_key.
*/
- struct GNUNET_TIME_AbsoluteNBO ts;
+ uint64_t proof_of_work GNUNET_PACKED;
/**
- * Number that causes a hash collision with the @e public_key.
+ * Timestamp
*/
- uint64_t proof_of_work GNUNET_PACKED;
+ struct GNUNET_TIME_AbsoluteNBO ts;
/**
* Signature confirming revocation.
diff --git a/src/revocation/revocation_api.c b/src/revocation/revocation_api.c
index c2aafd254..c9bb2543a 100644
--- a/src/revocation/revocation_api.c
+++ b/src/revocation/revocation_api.c
@@ -368,13 +368,13 @@ GNUNET_REVOCATION_check_pow (const struct
GNUNET_CRYPTO_EcdsaPublicKey *key,
ts_nbo = GNUNET_TIME_absolute_hton (*ts);
- GNUNET_memcpy (buf, &pow, sizeof(pow)) ;
- GNUNET_memcpy (&buf[sizeof(pow)], key,
- sizeof(struct GNUNET_CRYPTO_EcdsaPublicKey));
- GNUNET_memcpy (&buf[sizeof(pow) + sizeof (struct GNUNET_TIME_AbsoluteNBO)],
+ GNUNET_memcpy (buf, &pow, sizeof(pow));
+ GNUNET_memcpy (&buf[sizeof(pow)],
&ts_nbo,
sizeof (struct GNUNET_TIME_AbsoluteNBO));
-
+ GNUNET_memcpy (&buf[sizeof(pow) + sizeof (struct GNUNET_TIME_AbsoluteNBO)],
+ key,
+ sizeof(struct GNUNET_CRYPTO_EcdsaPublicKey));
GNUNET_CRYPTO_pow_hash ("gnunet-revocation-proof-of-work",
buf,
sizeof(buf),
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [gnunet] branch master updated (bf99d2243 -> f225e5688), gnunet, 2020/04/22
- [gnunet] 04/31: merge, gnunet, 2020/04/22
- [gnunet] 01/31: add argon2 for LSD0001, gnunet, 2020/04/22
- [gnunet] 03/31: update params, gnunet, 2020/04/22
- [gnunet] 02/31: add argon2 for LSD0001, gnunet, 2020/04/22
- [gnunet] 07/31: towards more expirations,
gnunet <=
- [gnunet] 05/31: revert, gnunet, 2020/04/22
- [gnunet] 06/31: simplify pow even more; add timestamp to revocation pow, gnunet, 2020/04/22
- [gnunet] 09/31: no diplicate nonces, gnunet, 2020/04/22
- [gnunet] 11/31: uncrustify, gnunet, 2020/04/22
- [gnunet] 12/31: those are actually debug messages, gnunet, 2020/04/22
- [gnunet] 13/31: more comments, allow to pick up pow later, gnunet, 2020/04/22
- [gnunet] 18/31: fix, gnunet, 2020/04/22
- [gnunet] 10/31: some comments, gnunet, 2020/04/22
- [gnunet] 25/31: packed makes no sense there, gnunet, 2020/04/22
- [gnunet] 19/31: check signature in check_pow, gnunet, 2020/04/22