diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2020-04-18 19:46:44 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2020-04-18 19:46:44 +0200 |
commit | f00c18e631ce8bdaf80d20f236ef275c9cb99291 (patch) | |
tree | 7926acf614e631febcbd5c99243d9c00edd2fbc2 /src/include/gnunet_revocation_service.h | |
parent | 91cccda131a12be139d50effe4657c6b24e36135 (diff) | |
download | gnunet-f00c18e631ce8bdaf80d20f236ef275c9cb99291.tar.gz gnunet-f00c18e631ce8bdaf80d20f236ef275c9cb99291.zip |
simplify pow even more; add timestamp to revocation pow
Diffstat (limited to 'src/include/gnunet_revocation_service.h')
-rw-r--r-- | src/include/gnunet_revocation_service.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/gnunet_revocation_service.h b/src/include/gnunet_revocation_service.h index 7222cedc1..1e1abb787 100644 --- a/src/include/gnunet_revocation_service.h +++ b/src/include/gnunet_revocation_service.h | |||
@@ -105,6 +105,7 @@ struct GNUNET_REVOCATION_Handle; | |||
105 | * @param key public key of the key to revoke | 105 | * @param key public key of the key to revoke |
106 | * @param sig signature to use on the revocation (should have been | 106 | * @param sig signature to use on the revocation (should have been |
107 | * created using #GNUNET_REVOCATION_sign_revocation). | 107 | * created using #GNUNET_REVOCATION_sign_revocation). |
108 | * @param ts revocation timestamp | ||
108 | * @param pow proof of work to use (should have been created by | 109 | * @param pow proof of work to use (should have been created by |
109 | * iteratively calling #GNUNET_REVOCATION_check_pow) | 110 | * iteratively calling #GNUNET_REVOCATION_check_pow) |
110 | * @param func funtion to call with the result of the check | 111 | * @param func funtion to call with the result of the check |
@@ -117,6 +118,7 @@ struct GNUNET_REVOCATION_Handle * | |||
117 | GNUNET_REVOCATION_revoke (const struct GNUNET_CONFIGURATION_Handle *cfg, | 118 | GNUNET_REVOCATION_revoke (const struct GNUNET_CONFIGURATION_Handle *cfg, |
118 | const struct GNUNET_CRYPTO_EcdsaPublicKey *key, | 119 | const struct GNUNET_CRYPTO_EcdsaPublicKey *key, |
119 | const struct GNUNET_CRYPTO_EcdsaSignature *sig, | 120 | const struct GNUNET_CRYPTO_EcdsaSignature *sig, |
121 | const struct GNUNET_TIME_Absolute *ts, | ||
120 | uint64_t pow, | 122 | uint64_t pow, |
121 | GNUNET_REVOCATION_Callback func, void *func_cls); | 123 | GNUNET_REVOCATION_Callback func, void *func_cls); |
122 | 124 | ||
@@ -135,12 +137,14 @@ GNUNET_REVOCATION_revoke_cancel (struct GNUNET_REVOCATION_Handle *h); | |||
135 | * would be acceptable for revoking the given key. | 137 | * would be acceptable for revoking the given key. |
136 | * | 138 | * |
137 | * @param key key to check for | 139 | * @param key key to check for |
140 | * @param ts revocation timestamp | ||
138 | * @param pow proof of work value | 141 | * @param pow proof of work value |
139 | * @param matching_bits how many bits must match (configuration) | 142 | * @param matching_bits how many bits must match (configuration) |
140 | * @return #GNUNET_YES if the @a pow is acceptable, #GNUNET_NO if not | 143 | * @return #GNUNET_YES if the @a pow is acceptable, #GNUNET_NO if not |
141 | */ | 144 | */ |
142 | int | 145 | int |
143 | GNUNET_REVOCATION_check_pow (const struct GNUNET_CRYPTO_EcdsaPublicKey *key, | 146 | GNUNET_REVOCATION_check_pow (const struct GNUNET_CRYPTO_EcdsaPublicKey *key, |
147 | const struct GNUNET_TIME_Absolute *ts, | ||
144 | uint64_t pow, | 148 | uint64_t pow, |
145 | unsigned int matching_bits); | 149 | unsigned int matching_bits); |
146 | 150 | ||