aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/gnunet_revocation_service.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/include/gnunet_revocation_service.h b/src/include/gnunet_revocation_service.h
index b38fbac3d..5c2ce91de 100644
--- a/src/include/gnunet_revocation_service.h
+++ b/src/include/gnunet_revocation_service.h
@@ -173,12 +173,9 @@ GNUNET_REVOCATION_revoke_cancel (struct GNUNET_REVOCATION_Handle *h);
173 173
174 174
175/** 175/**
176 * Check if the given proof-of-work value 176 * Check if the given proof-of-work is valid.
177 * would be acceptable for revoking the given key.
178 * 177 *
179 * @param key key to check for 178 * @param pow proof of work
180 * @param ts revocation timestamp
181 * @param pow proof of work value
182 * @param matching_bits how many bits must match (configuration) 179 * @param matching_bits how many bits must match (configuration)
183 * @return number of epochs valid if the @a pow is acceptable, -1 if not 180 * @return number of epochs valid if the @a pow is acceptable, -1 if not
184 */ 181 */
@@ -217,21 +214,17 @@ GNUNET_REVOCATION_pow_init2 (const struct GNUNET_REVOCATION_Pow *pow,
217 214
218 215
219/** 216/**
220 * Calculate a key revocation valid for broadcasting for a number 217 * Calculate a single round in the key revocation PoW.
221 * of epochs.
222 * 218 *
223 * @param pc handle to the PoW, initially called with NULL. 219 * @param pc handle to the PoW, initially called with NULL.
224 * @param epochs number of epochs for which the revocation must be valid. 220 * @return GNUNET_YES if the @a pow is acceptable, GNUNET_NO if not
225 * @param pow current pow value to try
226 * @param difficulty current base difficulty to achieve
227 * @return #GNUNET_YES if the @a pow is acceptable, #GNUNET_NO if not
228 */ 221 */
229int 222int
230GNUNET_REVOCATION_pow_round (struct GNUNET_REVOCATION_PowCalculationHandle *pc); 223GNUNET_REVOCATION_pow_round (struct GNUNET_REVOCATION_PowCalculationHandle *pc);
231 224
232 225
233/** 226/**
234 * Return the curren PoW state from the calculation 227 * Return the current PoW state from the calculation
235 * 228 *
236 * @param pc the calculation to get it from 229 * @param pc the calculation to get it from
237 * @return a pointer to the PoW 230 * @return a pointer to the PoW