distributed_keygen.utils module

Useful functions for the distributed keygen module.

distributed_keygen.utils.mult_list(list_, modulus=None)[source]

Utility function to multiply a list of numbers in a modular group

Parameters:
  • list – list of elements

  • modulus (Optional[int]) – modulus to be applied

Return type:

int

Returns:

product of the elements in the list modulo the modulus