latest.ipv8.test.attestation.wallet.primitives.test_value
Module Contents
Classes
Tests related to p^2-Galois field values. |
- class latest.ipv8.test.attestation.wallet.primitives.test_value.TestFP2Value(methodName: str = 'runTest')
Bases:
latest.ipv8.test.base.TestBase
Tests related to p^2-Galois field values.
- test_add_combined_mod() None
Check if x^2 + 5x + 5 + x^2 + 7x + 7 = 10x + 10 mod 11 mod x^2 + x + 1.
- test_sub_combined_mod() None
Check if x^2 + 5x + 5 - (x^2 + 7x + 7) = 9x + 9 mod 11 mod x^2 + x + 1.
- test_mul_combined_mod() None
Check if (5) * (x^2 + x + 1) = 5x^2 + 5x + 5 = 0 mod 11 mod x^2 + x + 1.