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
View File
@@ -14,6 +14,7 @@ type ThresholdKey struct {
Threshold int
V *big.Int
Vi []*big.Int
G *big.Int
}
// returns the value of (4*delta**2)** -1 mod n