26#ifndef SECRETSHARING_H
27#define SECRETSHARING_H
commonly used definitions; globals in this file are exempt from the rule that the module name ("commo...
Functions related to time.
#define GNUNET_NETWORK_STRUCT_BEGIN
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32.
#define GNUNET_NETWORK_STRUCT_END
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32;.
#define GNUNET_PACKED
gcc-ism to get packed structs.
#define GNUNET_SECRETSHARING_ELGAMAL_BITS
Number of bits for secretsharing elements.
The identity of the host (wraps the signing key of the peer).
struct GNUNET_MessageHeader header
Type: GNUNET_MESSAGE_TYPE_SECRETSHARING_CLIENT_GENERATE.
struct GNUNET_TIME_AbsoluteNBO deadline
Deadline for the establishment of the crypto system.
struct GNUNET_TIME_AbsoluteNBO start
Start time for communication with the other peers.
uint16_t num_peers
Number of peers at the end of this message.
struct GNUNET_HashCode session_id
Session ID, will be used for consensus.
uint16_t threshold
Minimum number of cooperating peers to decrypt a value.
struct GNUNET_TIME_AbsoluteNBO deadline
Until when should the decryption be finished?
struct GNUNET_TIME_AbsoluteNBO start
Until when should the decryption start?
struct GNUNET_MessageHeader header
Type: GNUNET_MESSAGE_TYPE_SECRETSHARING_CLIENT_DECRYPT_REQUEST.
struct GNUNET_SECRETSHARING_Ciphertext ciphertext
Ciphertext we want to decrypt.
struct GNUNET_SECRETSHARING_FieldElement plaintext
Decrypted plaintext.
uint32_t success
Zero if decryption failed, non-zero if decryption succeeded.
struct GNUNET_MessageHeader header
Type: GNUNET_MESSAGE_TYPE_SECRETSHARING_CLIENT_DECRYPT_DONE.
unsigned char bits[GNUNET_SECRETSHARING_ELGAMAL_BITS/8]
Value of an element in <elgamal_g>.
Public key of a group sharing a secret.
Notify the client that then threshold secret has been established.
struct GNUNET_MessageHeader header
Type: GNUNET_MESSAGE_TYPE_SECRETSHARING_CLIENT_SECRET_READY.
A share, with all values in in host byte order.
uint16_t num_peers
Peers that have the share.
uint16_t threshold
Threshold for the key this share belongs to.
struct GNUNET_SECRETSHARING_FieldElement my_share
Share of 'my_peer'.
struct GNUNET_SECRETSHARING_PublicKey public_key
Public key.
struct GNUNET_PeerIdentity * peers
Peer identities (includes 'my_peer')
uint16_t my_peer
Index of our peer in the list.
struct GNUNET_SECRETSHARING_FieldElement * sigmas
uint16_t * original_indices
Time for absolute time used by GNUnet, in microseconds and in network byte order.