diff options
author | Florian Dold <florian.dold@gmail.com> | 2014-02-11 00:09:53 +0000 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2014-02-11 00:09:53 +0000 |
commit | 3e6c5eb76deedb76715e68e215622bcdd4eba3bf (patch) | |
tree | 6547309ea76a9daadfbedc04a0147b87340470d7 /src/secretsharing/secretsharing.h | |
parent | 48177fb73301df925712f5237ca71bb0a5088152 (diff) | |
download | gnunet-3e6c5eb76deedb76715e68e215622bcdd4eba3bf.tar.gz gnunet-3e6c5eb76deedb76715e68e215622bcdd4eba3bf.zip |
- fixed wrong crypto in secretsharing
- added zero knowledge proofs (except the one for fair encryption) and other verifications
Diffstat (limited to 'src/secretsharing/secretsharing.h')
-rw-r--r-- | src/secretsharing/secretsharing.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/secretsharing/secretsharing.h b/src/secretsharing/secretsharing.h index 796feabae..227349b05 100644 --- a/src/secretsharing/secretsharing.h +++ b/src/secretsharing/secretsharing.h | |||
@@ -198,8 +198,8 @@ struct GNUNET_SECRETSHARING_Share | |||
198 | uint16_t my_peer; | 198 | uint16_t my_peer; |
199 | 199 | ||
200 | /** | 200 | /** |
201 | * Public key. Must correspond to the product of | 201 | * Public key. Computed from the |
202 | * the homomorphic share commitments. | 202 | * exponentiated coefficients. |
203 | */ | 203 | */ |
204 | struct GNUNET_SECRETSHARING_PublicKey public_key; | 204 | struct GNUNET_SECRETSHARING_PublicKey public_key; |
205 | 205 | ||
@@ -214,9 +214,10 @@ struct GNUNET_SECRETSHARING_Share | |||
214 | struct GNUNET_PeerIdentity *peers; | 214 | struct GNUNET_PeerIdentity *peers; |
215 | 215 | ||
216 | /* | 216 | /* |
217 | * Homomorphic commitments to each peer's share (includes 'my_peer') | 217 | * For each peer, store elgamal_g to the peer's |
218 | * share. | ||
218 | */ | 219 | */ |
219 | struct GNUNET_SECRETSHARING_FieldElement *hom_share_commitments; | 220 | struct GNUNET_SECRETSHARING_FieldElement *sigmas; |
220 | 221 | ||
221 | /* | 222 | /* |
222 | * Original indices of peers from the DKG round. | 223 | * Original indices of peers from the DKG round. |