26 #ifndef SECRETSHARING_H 27 #define SECRETSHARING_H static unsigned int threshold
What should the threshold for then key be?
uint16_t threshold
Threshold for the key this share belongs to.
struct GNUNET_PeerIdentity * peers
Peer identities (includes 'my_peer')
static int start
Set if we are to start default services (including ARM).
A share, with all values in in host byte order.
static struct GNUNET_HashCode session_id
Time for absolute time used by GNUnet, in microseconds and in network byte order. ...
#define GNUNET_NETWORK_STRUCT_BEGIN
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32.
Public key of a group sharing a secret.
uint16_t * original_indices
static struct GNUNET_SECRETSHARING_Ciphertext ciphertext
static unsigned int num_peers
#define GNUNET_NETWORK_STRUCT_END
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32;.
The identity of the host (wraps the signing key of the peer).
#define GNUNET_PACKED
gcc-ism to get packed structs.
struct GNUNET_SECRETSHARING_FieldElement * sigmas
uint16_t my_peer
Index of our peer in the list.
unsigned char bits[GNUNET_SECRETSHARING_ELGAMAL_BITS/8]
Value of an element in <elgamal_g>.
static struct GNUNET_TIME_Absolute deadline
Deadline for all consensuses.
commonly used definitions; globals in this file are exempt from the rule that the module name ("commo...
uint16_t num_peers
Peers that have the share.
Notify the client that then threshold secret has been established.
#define GNUNET_SECRETSHARING_ELGAMAL_BITS
Number of bits for secretsharing elements.