From 9fe64ff57bd1a20b75d3f4271129297e3a86d81b Mon Sep 17 00:00:00 2001 From: Piotr Dyraga Date: Fri, 25 May 2018 09:58:26 +0200 Subject: [PATCH] Comment about G value moved to ThresholdKey G is no longer a parameter of PublicKey. --- paillier.go | 2 +- thresholdkey.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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