<feed xmlns='http://www.w3.org/2005/Atom'>
<title>plonkers/test/test_fp.ml, branch main</title>
<subtitle>PLONK from scratch</subtitle>
<id>http://src.lordello.net/plonkers/atom/test/test_fp.ml?h=main</id>
<link rel='self' href='http://src.lordello.net/plonkers/atom/test/test_fp.ml?h=main'/>
<link rel='alternate' type='text/html' href='http://src.lordello.net/plonkers/'/>
<updated>2025-08-01T16:02:12Z</updated>
<entry>
<title>Refactor Project</title>
<updated>2025-08-01T16:02:12Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2025-08-01T16:02:12Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/plonkers/commit/?id=51e1e445215c14e3ce90ab12906f07ffb2b09aaf'/>
<id>urn:sha1:51e1e445215c14e3ce90ab12906f07ffb2b09aaf</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Refactor Fields to be Functor Based</title>
<updated>2025-07-29T20:54:38Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2025-07-29T20:54:38Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/plonkers/commit/?id=c2f1680b6718a01c128fbb83ba3c50b70c3c5d7c'/>
<id>urn:sha1:c2f1680b6718a01c128fbb83ba3c50b70c3c5d7c</id>
<content type='text'>
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).
</content>
</entry>
<entry>
<title>Pairing Tests and Refactor</title>
<updated>2025-07-28T10:35:51Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2025-07-28T10:35:51Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/plonkers/commit/?id=96c1a864a7c3cdd5006cef5ae8e30cdca61d303a'/>
<id>urn:sha1:96c1a864a7c3cdd5006cef5ae8e30cdca61d303a</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Switch to BLS12-381</title>
<updated>2024-07-25T20:58:36Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2024-07-25T20:58:36Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/plonkers/commit/?id=5eb33df1046c6627cc80716ffccaa927284c91a7'/>
<id>urn:sha1:5eb33df1046c6627cc80716ffccaa927284c91a7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Cleaned Up Tests</title>
<updated>2024-07-25T19:07:06Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2024-07-25T19:07:06Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/plonkers/commit/?id=fd50c91473eda09db01c63421fbb7084ed896494'/>
<id>urn:sha1:fd50c91473eda09db01c63421fbb7084ed896494</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Implement Polynomial Extension Fields</title>
<updated>2024-06-24T06:46:01Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2024-06-24T06:46:01Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/plonkers/commit/?id=9747206e7a0a08f6dc8c92730f0780e1b66cb23e'/>
<id>urn:sha1:9747206e7a0a08f6dc8c92730f0780e1b66cb23e</id>
<content type='text'>
Notably, only `Fp[X]/1+x^2`, or `Fp2` is tested at the moment. More
tests for `Fp12` coming right up!
</content>
</entry>
<entry>
<title>Journal and next steps</title>
<updated>2024-06-18T08:09:40Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2024-06-18T08:09:32Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/plonkers/commit/?id=4b5936586e570b125b1c68d04b1479262af9c98b'/>
<id>urn:sha1:4b5936586e570b125b1c68d04b1479262af9c98b</id>
<content type='text'>
In this commit, we refactor the module to contain all the fields that we
need: namely the prime field for the BN254 curve, but also the extension
fields (polynomial rings) needed for the elliptic curve pairings used by
PLONK.

In addition, I added a "journal" for documenting findings as I go as
well as useful resources I used when implementing this from scratch.
</content>
</entry>
<entry>
<title>Implement Finite Prime Field</title>
<updated>2024-06-17T19:51:02Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2024-06-17T19:51:02Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/plonkers/commit/?id=f2643a291339faa25d4d07d1006526b727fcc706'/>
<id>urn:sha1:f2643a291339faa25d4d07d1006526b727fcc706</id>
<content type='text'>
Adds a finite prime field implementation that is used by the BN254 curve
and pairings. Extended finite fields will be coming next.
</content>
</entry>
</feed>
