<feed xmlns='http://www.w3.org/2005/Atom'>
<title>plonkers, branch main</title>
<subtitle>PLONK from scratch</subtitle>
<id>http://src.lordello.net/plonkers/atom/?h=main</id>
<link rel='self' href='http://src.lordello.net/plonkers/atom/?h=main'/>
<link rel='alternate' type='text/html' href='http://src.lordello.net/plonkers/'/>
<updated>2026-07-31T11:14:09Z</updated>
<entry>
<title>bye bye Codeberg :'(</title>
<updated>2026-07-31T11:14:09Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2026-07-31T11:14:09Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/plonkers/commit/?id=508f77a2cbfc186174f224a90d64ffa9bb4b9097'/>
<id>urn:sha1:508f77a2cbfc186174f224a90d64ffa9bb4b9097</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Polynomial Commitments Journal Entry</title>
<updated>2025-11-18T21:26:38Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2025-11-18T21:25:14Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/plonkers/commit/?id=619dec90d0fa11d1d4bcab9dd995833452918a46'/>
<id>urn:sha1:619dec90d0fa11d1d4bcab9dd995833452918a46</id>
<content type='text'>
Added journal entry on polynomial commitements (specifcially, KZG
commitments), and started thinking about how to implement them.

There is still a lot of work to be done, but pushing so I don't
lose the information I have so far.
</content>
</entry>
<entry>
<title>Additional Detail for Optimal Tower-Based Pairings</title>
<updated>2025-08-13T08:58:51Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2025-08-13T08:58:51Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/plonkers/commit/?id=ed83696f45467f576f67b8da7d403b627fb4606c'/>
<id>urn:sha1:ed83696f45467f576f67b8da7d403b627fb4606c</id>
<content type='text'>
So it comes as no surprise the the pairing value in most
implementations is different to what we have here: they implement Fp12
as a tower which behaves different to our polynomial extension field.
</content>
</entry>
<entry>
<title>Remove the Test Vector from IETF Draft</title>
<updated>2025-08-11T10:32:14Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2025-08-11T10:32:14Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/plonkers/commit/?id=61b4dc407ee61d402c4cf72dfa3408af51f86a0e'/>
<id>urn:sha1:61b4dc407ee61d402c4cf72dfa3408af51f86a0e</id>
<content type='text'>
I could not get the result to match it, or find an implementation that
matched it either... I plan on modifying the pairing implementation to
match what I consider is the "canonical" one, that is implemented over
a Fp12-tower and used in most implementations used in the
wild (including Ethereum's and ZCash's).
</content>
</entry>
<entry>
<title>Experiment With Reference Implementation</title>
<updated>2025-08-11T07:26:35Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2025-08-11T07:26:35Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/plonkers/commit/?id=cec383521a82b68dc019e58d9b5a0056794f91fe'/>
<id>urn:sha1:cec383521a82b68dc019e58d9b5a0056794f91fe</id>
<content type='text'>
We experiment with the test vector from the IETF draft
"Pairing-Friendly Curves", but the implementation does not yield the
same test result (some coefficients are the same though)... I don't
know why, and I cannot find a reference implementation that _does_
return the pairing value from the test vector.
</content>
</entry>
<entry>
<title>Add Failing Pairing Test Vector</title>
<updated>2025-08-10T07:40:56Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2025-08-10T07:40:56Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/plonkers/commit/?id=562857071b2aee9b37f042a1b521cb0b9de8b729'/>
<id>urn:sha1:562857071b2aee9b37f042a1b521cb0b9de8b729</id>
<content type='text'>
</content>
</entry>
<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>Remove `conjugate`</title>
<updated>2025-08-01T14:28:43Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2025-08-01T14:28:43Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/plonkers/commit/?id=4ce648df90034d7dade55cadd5bd6251619cf922'/>
<id>urn:sha1:4ce648df90034d7dade55cadd5bd6251619cf922</id>
<content type='text'>
It only makes sense for fields implemented as towers, which is NOT what
we did here.
</content>
</entry>
<entry>
<title>Add Fp2 Optimizations</title>
<updated>2025-08-01T14:26:39Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2025-08-01T14:24:21Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/plonkers/commit/?id=ff6fd1144763e42f29710ed23ef7016442a03c9a'/>
<id>urn:sha1:ff6fd1144763e42f29710ed23ef7016442a03c9a</id>
<content type='text'>
Add optimizations for Fp2.
</content>
</entry>
<entry>
<title>Batched Pairing Computation</title>
<updated>2025-08-01T12:49:14Z</updated>
<author>
<name>Nicholas Rodrigues Lordello</name>
<email>n@lordello.net</email>
</author>
<published>2025-08-01T12:49:14Z</published>
<link rel='alternate' type='text/html' href='http://src.lordello.net/plonkers/commit/?id=89f936fff830cd245d47fb5fb6e109c56216c7af'/>
<id>urn:sha1:89f936fff830cd245d47fb5fb6e109c56216c7af</id>
<content type='text'>
We batch pairing computations for efficient checking. This allows to
more efficiently implement things like BLS signatures (where we check
that some pairing dot another is equal to 1). This is because the
exponentiation in Fp12 is a _huge_ computational effort (and what takes
the most time in the pairing computation).

It looks like `@noble/curves` implements a pairing to another `Gt` that
is much more efficient to compute (as we do not need to untwist
coordinates at all, meaning no field inversion, and no computations in
Fp12), but I will hold off on implementing this until there is an actual
need for it (in case the current pairing implementation is too slow).
</content>
</entry>
</feed>
