latest.ipv8.test.attestation.wallet.primitives.test_ec

Module Contents

Classes

TestPairing

Tests related to creating Weil pairings.

class latest.ipv8.test.attestation.wallet.primitives.test_ec.TestPairing(methodName: str = 'runTest')

Bases: latest.ipv8.test.base.TestBase

Tests related to creating Weil pairings.

test_small_weilpairing() None

Check if Weil pairing in E[4] mod 11 of (5, 4) and (5x, 4) with S=(7, 6) equals 9 + 7x.

test_medium_weilpairing() None

Check if Weil pairing in E[408] mod 1223 of (764, 140) and (18x, 84) with S=(0, 1222) equals 438 + 50x.

test_oob_esum() None

Check if EC sum of the point of infinity with itself is the point at infinity.

test_spob_esum() None

Check if EC sum of the point of infinity with another point equals the other point.