Improved GetThresholdKeyGenerator documentation
Added information about the required minimum bit length of the public key. Removed the threshold information as we are not sure now if it's valid. We'll investigate it separately and make sure a proper validation for threshold is made.
This commit is contained in:
1 file changed
+5
-4
@@ -46,10 +46,11 @@ type ThresholdKeyGenerator struct {
|
|||||||
polynomialCoefficients []*big.Int
|
polynomialCoefficients []*big.Int
|
||||||
}
|
}
|
||||||
|
|
||||||
// Preferable way to construct the ThresholdKeyGenerator. No verification
|
// GetThresholdKeyGenerator is a preferable way to construct the
|
||||||
// is done on the input values. You need to be sure that nbits is big enough
|
// ThresholdKeyGenerator.
|
||||||
// and that Threshold > TotalNumberOfDecryptionServers / 2.
|
// Due to the various properties that must be met for the threshold key to be
|
||||||
// The plaintext space for the key will be Z_n.
|
// considered valid, the minimum public key `N` bit length is 18 bits.
|
||||||
|
// The plaintext space for the key will be `Z_N`.
|
||||||
func GetThresholdKeyGenerator(
|
func GetThresholdKeyGenerator(
|
||||||
publicKeyBitLength int,
|
publicKeyBitLength int,
|
||||||
totalNumberOfDecryptionServers int,
|
totalNumberOfDecryptionServers int,
|
||||||
|
|||||||
Reference in new issue
Block a user