aboutsummaryrefslogtreecommitdiff
path: root/test/test_fp12.ml
AgeCommit message (Collapse)Author
2025-08-01Refactor ProjectNicholas Rodrigues Lordello
We now put all field, curve, and pairing instantiations under `bls12_381` module. We no longer have an `E12` curve - since we don't use it.
2025-07-29Refactor Fields to be Functor BasedNicholas Rodrigues Lordello
Prime fields and polynomial extension fields are now functor based. That is, you define field parameters and a functor will produce a field module. This is the first step to moving all BLS12-381 pairing definitions to a single module, instead of splitting them. This makes the "this is the curve and its pairing" very central, with the field and curve modules being generic over their respective parameterization. Added field exponentiation - and found out that Zarith supports negative exponents, and `powm x ~-1 p` is a much more efficient way of computing a field inverse (tests run ~5 times quicker).
2025-07-28Pairing Tests and RefactorNicholas Rodrigues Lordello
We refactored the extension field types to use an array for coefficients instead of a tuple. Tests were modified to only have string literals for numerical literals (istead of previously encoding a whole `Fp12` in a single string for example). As a result, we get better formatting and more line breaks instead of super dense and long lines. Unfortunately, this makes a very big PR instead. The pairing development will continue in the next one to not overgrow this too much.
2024-09-29Implemented Elliptic Curve OperationsNicholas Rodrigues Lordello
This includes operations for all 3 curves relevant to PLONK.
2024-07-25Switch to BLS12-381Nicholas Rodrigues Lordello
2024-07-25Cleaned Up TestsNicholas Rodrigues Lordello
2024-06-24Add Fp12 TestsNicholas Rodrigues Lordello
Additionally, slight refactor to make the `field.ml` module **ONLY** include the module type signature definition.