shamir.utils module

Useful functions for the shamir module.

shamir.utils.mult_list(list_, modulus=0)[source]

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

Parameters:
  • list – list of elements

  • modulus (int) – modulus to be applied, use 0 for no modulus

Return type:

int

Returns:

product of the elements in the list modulo the modulus