gnunet-svn
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]