aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_escrow_lib.h
diff options
context:
space:
mode:
authorjospaeth <spaethj@in.tum.de>2020-08-05 13:15:25 +0200
committerjospaeth <spaethj@in.tum.de>2020-08-05 13:15:25 +0200
commite35aa4c6b22ae0ae81a23e973eda3655f29e29b5 (patch)
treee826aaf4e9ad0c1706778c6bbe6e56c0eb957dae /src/include/gnunet_escrow_lib.h
parent7d0910b473aff309d0ee9852d44f611cf897dbda (diff)
downloadgnunet-e35aa4c6b22ae0ae81a23e973eda3655f29e29b5.tar.gz
gnunet-e35aa4c6b22ae0ae81a23e973eda3655f29e29b5.zip
add a API method for getting the escrow status
not yet working!
Diffstat (limited to 'src/include/gnunet_escrow_lib.h')
-rw-r--r--src/include/gnunet_escrow_lib.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/include/gnunet_escrow_lib.h b/src/include/gnunet_escrow_lib.h
index 564c457b9..112f0afdb 100644
--- a/src/include/gnunet_escrow_lib.h
+++ b/src/include/gnunet_escrow_lib.h
@@ -77,6 +77,22 @@ struct GNUNET_ESCROW_Anchor {
77 77
78 78
79/** 79/**
80 * Struct for the escrow status
81 */
82struct GNUNET_ESCROW_Status {
83 /**
84 * The time of the last successful escrow.
85 */
86 struct GNUNET_TIME_Absolute last_escrow_time;
87
88 /**
89 * The time of the next recommended escrow.
90 */
91 struct GNUNET_TIME_Absolute next_recommended_escrow_time;
92};
93
94
95/**
80 * Function called after the initialization of the identity service. 96 * Function called after the initialization of the identity service.
81 * Passed via cls to the callback of GNUNET_IDENTITY_connect 97 * Passed via cls to the callback of GNUNET_IDENTITY_connect
82 */ 98 */
@@ -284,6 +300,26 @@ GNUNET_ESCROW_verify (
284 300
285 301
286/** 302/**
303 * Get the status of an escrow, i.e.
304 * -> when the last escrow was
305 * -> when the next escrow is recommended
306 *
307 * @param h the handle for the escrow component
308 * @param ego the identity ego of which the escrow status has to be determined
309 * @param escrowAnchor the escrow anchor returned by the GNUNET_ESCROW_put method
310 * @param method the escrow method to use
311 *
312 * @return the status of the escrow packed into a GNUNET_ESCROW_Status struct
313 */
314struct GNUNET_ESCROW_Status *
315GNUNET_ESCROW_get_status (
316 struct GNUNET_ESCROW_Handle *h,
317 const struct GNUNET_IDENTITY_Ego *ego,
318 struct GNUNET_ESCROW_Anchor *escrowAnchor,
319 enum GNUNET_ESCROW_Key_Escrow_Method method);
320
321
322/**
287 * Deserialize an escrow anchor string (e.g. from command line) into a 323 * Deserialize an escrow anchor string (e.g. from command line) into a
288 * GNUNET_ESCROW_Anchor struct 324 * GNUNET_ESCROW_Anchor struct
289 * 325 *