From 0d2a123af76417b75dd91eb1927575f5aa0fb6f2 Mon Sep 17 00:00:00 2001 From: Piotr Dyraga Date: Wed, 8 Aug 2018 11:28:25 +0200 Subject: [PATCH] Fixed comment for safe primes required bit length Safe primes bit length is n-1 for n-bit public key --- thresholdkey_generator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thresholdkey_generator.go b/thresholdkey_generator.go index 5c2cd22..ebcf305 100644 --- a/thresholdkey_generator.go +++ b/thresholdkey_generator.go @@ -64,7 +64,7 @@ func GetThresholdKeyGenerator( return nil, errors.New("Public key bit length must be an even number") } if publicKeyBitLength < 18 { - // We need to find two n-bit safe primes, P and Q which are not equal. + // We need to find two n-1-bit safe primes, P and Q which are not equal. // This is not possible for n<18. return nil, errors.New("Public key bit length must be at least 18 bits") }