Remix.run Logo
▲ I pen plotted secp256k1 (Bitcoin's elliptic curve)(harmonique.one)
67 points by futurecat 2 hours ago | 19 comments
▲hturan a few seconds ago | parent | next [-]

Beautiful work!

I was also taken by Hajouji and Trettel's work (https://elliptic-curves.art) when it came out last year, and ended up creating a pair of sterling silver pins from it (without the spheres for finite representation) — https://storage.hturan.com/site/elliptic-spirals/1.1761.b5df....

Took a little work (models weren't great back then) and a few trips down rabbit holes exploring Hopf tori, but I ended up using Python in Grasshopper/Rhino for the implementation.

▲tptacek 43 minutes ago | parent | prev | next [-]

This is neat, but Dual EC, the "backdoored curve", isn't a curve at all; it's a random number generator keyed with a public key (the backdoor is that there's a private key the government holds). There are no known backdoored curves, and the prospect of curve backdoors aren't why Bitcoin uses secp256k1 (Mike Hearn is on another thread talking about how he discussed this with Satoshi).

▲gopalv 6 minutes ago | parent | next [-]

> prospect of curve backdoors aren't why Bitcoin uses secp256k1

Even if it was a random choice, secp256k1 was built for 64 bit & P-256 was made for a 32 bit world.

32 bit signed numbers feels off, when a register can fit two of them.

Purely at the word boundary positions, you can see that the carry entropy for secp256k1 is way higher than P-256 had.

▲ZiiS 30 minutes ago | parent | prev [-]

The are no publicly acknowledged backdoored curves today; just a lot of hand-waving from the NSA and major tech companies (see Cloudflare's CEO's messages and the Chrome announcements) that obliquely raise serious concern they are about to acknowledge something very close to this.

▲rootsudo an hour ago | parent | prev | next [-]

Curious minds are curious I wonder what it means for bitcoin in general :)

"secp256k1, Satoshi Nakamoto, and the NSA backdoors I chose to plot secp256k1 because this elliptic curve is even more curious than the others.

Almost everybody used the officially recommended curve, P-256. One of its constants comes from a seed that the NSA supplied without explanation, and cryptographers had questioned that in public since 1999. In 2007, two Microsoft researchers showed that another NIST standard built on elliptic curves could hide an NSA backdoor.

Two years later, Satoshi Nakamoto picked secp256k1, a curve almost nobody used, with no unexplained constant in it.

They never said that this was the reason. Asked about it in 2011, they wrote: "I didn't find anything to recommend a curve type so I just... picked one.""

▲leodavi 40 minutes ago | parent | prev | next [-]

The artistic approach here is RIGHT up my alley as someone who glazes / romanticizes math and computer science concepts as a means towards understanding.

I like the visual representations, and the way they make me feel, a lot.

▲futurecat 33 minutes ago | parent [-]

Thank you so much for your comment!

▲gruez an hour ago | parent | prev | next [-]

So where's the pen plot? The title is just a clickbait headline for a tangential rant.

For people who actually care about the plot, you can't actually plot it because part of what makes the curve work for cryptography is that it's unpredictable. You can plot it for real numbers, but that wouldn't be representative of how it's actually used, and if you plot the field instead, you'd get a bunch of random dots:

https://bitcoin.stackexchange.com/questions/21907/what-does-...

▲e28eta 15 minutes ago | parent | next [-]

I saw several images attached to the post, were they missing for you?

I believe the rebuttal to your stack exchange link is the paper that OP links to: https://arxiv.org/abs/2505.09627

Unfortunately, that paper doesn’t actually explain how they’re generated, finishing with:

> A Gallery of Elliptic Curves over Finite Fields

> At this point in the story, our training as mathematicians compels us to explain precisely how we’re using Galois theory to make our pictures, and how we know our method always works. We will answer these questions in a later work, and for now, content ourselves with sharing the end result of our labor: new illustrations of elliptic curves over finite fields, living inside the ghost of the complex elliptic curve that once gave birth to it.

▲cowlevel 9 minutes ago | parent [-]

The images are AI-generated "artists interpretations" of random spheres and wireframes, like you'd get if you asked AI to draw cyberspace or some other abstract concept. They are not the curve. And the fact the author doesn't even acknowledge this makes me suspect the website is an automated slop factory.

▲rustyhancock 32 minutes ago | parent | prev | next [-]

I took was frustrated by this, especially with no explanation what was plotted and how.

I was prepared for him to say this is what the curve looks like over the reals (mod p) but I have no idea what this is.

▲futurecat 30 minutes ago | parent | prev [-]

oh well, I should have definitely put a video of the pen plots. It's running and will be uploaded in a couple of hours on the shop.

As for the methodology, please read the original paper at https://elliptic-curves.art/

This is what I directed Claude to implement.

▲ghastmaster an hour ago | parent | prev | next [-]

The 4th image at the bottom corresponds to image # 2. The hyperlink is missing.

https://shop.harmonique.one/products/secp256k1-002

▲futurecat 32 minutes ago | parent [-]

ah! sorry about that. I was in a rush and was hit by a bug in my cms. will fix it over the week-end.

▲cowlevel 11 minutes ago | parent | prev | next [-]

This is pure slop. No elliptic curves are plotted here, it's just some AI generated drawings of spheres and meshes.

▲HedonicEscal8r an hour ago | parent | prev | next [-]

Beautiful!

▲futurecat 34 minutes ago | parent [-]

Thank you!

▲ingen0s 44 minutes ago | parent | prev [-]

Superb!

▲futurecat 34 minutes ago | parent [-]

Thank you!