def test_verify_polynomial_value(self):
        # Arrange
        polynomial = generate_polynomial(TEST_POLYNOMIAL_DEGREE)

        # Act
        value = compute_polynomial_value(TEST_EXPONENT_MODIFIER, polynomial)

        # Assert
        self.assertTrue(
            verify_polynomial_value(value, TEST_EXPONENT_MODIFIER,
                                    polynomial.coefficient_commitments))
Exemplo n.º 2
0
    def test_generate_polynomial(self):
        # Act
        polynomial = generate_polynomial(TEST_POLYNOMIAL_DEGREE)

        # Assert
        self.assertIsNotNone(polynomial)