diff --git a/paillier.go b/paillier.go index fc501e5..9a2ab6c 100644 --- a/paillier.go +++ b/paillier.go @@ -7,7 +7,7 @@ import ( ) type PublicKey struct { - N *big.Int // usually G is set to N+1 + N *big.Int } func (this *PublicKey) GetBSON() (interface{}, error) { diff --git a/thresholdkey.go b/thresholdkey.go index c76bb6c..3ade718 100644 --- a/thresholdkey.go +++ b/thresholdkey.go @@ -14,7 +14,7 @@ type ThresholdKey struct { Threshold int V *big.Int Vi []*big.Int - G *big.Int + G *big.Int // usually G is set to N+1 } // returns the value of (4*delta**2)** -1 mod n