diff options
Diffstat (limited to 'src/include/gnunet_secretsharing_service.h')
-rw-r--r-- | src/include/gnunet_secretsharing_service.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/gnunet_secretsharing_service.h b/src/include/gnunet_secretsharing_service.h index 1524c79fe..3673ca0fe 100644 --- a/src/include/gnunet_secretsharing_service.h +++ b/src/include/gnunet_secretsharing_service.h | |||
@@ -190,6 +190,8 @@ typedef void (*GNUNET_SECRETSHARING_DecryptCallback) (void *cls, | |||
190 | * @param num_peers number of peers in 'peers' | 190 | * @param num_peers number of peers in 'peers' |
191 | * @param peers array of peers that we will share secrets with, can optionally contain the local peer | 191 | * @param peers array of peers that we will share secrets with, can optionally contain the local peer |
192 | * @param session_id unique session id | 192 | * @param session_id unique session id |
193 | * @param start When should all peers be available for sharing the secret? | ||
194 | * Random number generation can take place before the start time. | ||
193 | * @param deadline point in time where the session must be established; taken as hint | 195 | * @param deadline point in time where the session must be established; taken as hint |
194 | * by underlying consensus sessions | 196 | * by underlying consensus sessions |
195 | * @param threshold minimum number of peers that must cooperate to decrypt a value | 197 | * @param threshold minimum number of peers that must cooperate to decrypt a value |
@@ -201,6 +203,7 @@ GNUNET_SECRETSHARING_create_session (const struct GNUNET_CONFIGURATION_Handle *c | |||
201 | unsigned int num_peers, | 203 | unsigned int num_peers, |
202 | const struct GNUNET_PeerIdentity *peers, | 204 | const struct GNUNET_PeerIdentity *peers, |
203 | const struct GNUNET_HashCode *session_id, | 205 | const struct GNUNET_HashCode *session_id, |
206 | struct GNUNET_TIME_Absolute start, | ||
204 | struct GNUNET_TIME_Absolute deadline, | 207 | struct GNUNET_TIME_Absolute deadline, |
205 | unsigned int threshold, | 208 | unsigned int threshold, |
206 | GNUNET_SECRETSHARING_SecretReadyCallback cb, | 209 | GNUNET_SECRETSHARING_SecretReadyCallback cb, |
@@ -247,6 +250,7 @@ GNUNET_SECRETSHARING_encrypt (const struct GNUNET_SECRETSHARING_PublicKey *publi | |||
247 | * @param share our secret share to use for decryption | 250 | * @param share our secret share to use for decryption |
248 | * @param ciphertext ciphertext to publish in order to decrypt it (if enough peers agree) | 251 | * @param ciphertext ciphertext to publish in order to decrypt it (if enough peers agree) |
249 | * @param decrypt_cb callback called once the decryption succeeded | 252 | * @param decrypt_cb callback called once the decryption succeeded |
253 | * @param start By when should the cooperation for decryption start? | ||
250 | * @param deadline By when should the decryption be finished? | 254 | * @param deadline By when should the decryption be finished? |
251 | * @param decrypt_cb_cls closure for @a decrypt_cb | 255 | * @param decrypt_cb_cls closure for @a decrypt_cb |
252 | * @return handle to cancel the operation | 256 | * @return handle to cancel the operation |
@@ -255,6 +259,7 @@ struct GNUNET_SECRETSHARING_DecryptionHandle * | |||
255 | GNUNET_SECRETSHARING_decrypt (const struct GNUNET_CONFIGURATION_Handle *cfg, | 259 | GNUNET_SECRETSHARING_decrypt (const struct GNUNET_CONFIGURATION_Handle *cfg, |
256 | struct GNUNET_SECRETSHARING_Share *share, | 260 | struct GNUNET_SECRETSHARING_Share *share, |
257 | const struct GNUNET_SECRETSHARING_Ciphertext *ciphertext, | 261 | const struct GNUNET_SECRETSHARING_Ciphertext *ciphertext, |
262 | struct GNUNET_TIME_Absolute start, | ||
258 | struct GNUNET_TIME_Absolute deadline, | 263 | struct GNUNET_TIME_Absolute deadline, |
259 | GNUNET_SECRETSHARING_DecryptCallback decrypt_cb, | 264 | GNUNET_SECRETSHARING_DecryptCallback decrypt_cb, |
260 | void *decrypt_cb_cls); | 265 | void *decrypt_cb_cls); |