G parameter moved from PublicKey to ThresholdKey

We don't need G for our PublicKey since it's now always equal N+1. It's required by the `ThresholdKey` to compile, so I moved it there. I will investigate if for a threshold Paillier scheme G is really needed in the pkey.
This commit is contained in:
Piotr Dyraga committed 2018-05-24 19:13:29 +02:00
1 parent 69c60e90d5
commit 4595f69872
3 files changed
+4 -5

No files matched your search

+1 -1
View File
@@ -118,6 +118,6 @@ func TestPartialDecryptionZKPBSONification(t *testing.T) {
}
func TestThresholdKeyBSON(t *testing.T) {
key := &ThresholdKey{PublicKey{b(9), b(8)}, 7, 6, b(3), []*big.Int{b(2), b(34)}}
key := &ThresholdKey{PublicKey{b(9)}, 7, 6, b(3), []*big.Int{b(2), b(34)}, b(8)}
AssertBSONIsGood(key, new(ThresholdKey), t)
}