I pen plotted secp256k1 (Bitcoin's elliptic curve)

(harmonique.one)

100 points | by futurecat 2 hours ago

13 comments

  • hturan 1 hour ago
    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.

    • futurecat 1 hour ago
      excellent! I was thinking it would make great jewelry as well!
  • andai 14 minutes ago
    Huh, neat. I always thought an elliptic curve was, like, an ellipse. This is way more interesting.
    • nwallin 2 minutes ago
      Elliptic curves fell out of the elliptic integral, which is the math you use to calculate the arc length of an ellipse. When they were working on solving elliptic integrals using elliptic curves, it turns out they had other uses besides calculating an ellipse's arc length, but the name stuck.

      There's an additional wrinkle when you start talking about elliptic curve cryptography. We actually use elliptic curve finite fields. Not only do we exclude all non-integer solutions, but we do the math modulo N. This completely blows up anything that makes it look like a nice curve on a Cartesian plane. It's just a handful of dots at some of the integer coordinates that when you look at them don't appear to have any rhyme or reason. Elliptic curves are neither ellipses nor curves.

  • tptacek 2 hours ago
    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 1 hour ago
      > 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 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.

      • SV_BubbleTime 1 hour ago
        > 32 bit numbers feels off, when a register can fit two of them.

        I’m in embedded. A register is 32bits wide. What are you talking about? Excuse me for a moment while I stuff my 8bit demons back under the floorboards where they belong.

    • ZiiS 1 hour ago
      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 2 hours ago
    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.""

  • im3w1l 12 minutes ago
    How do the images relate to the curves? Like what part is mathematical and what part is artistic interpretation?
  • nomilk 38 minutes ago
    > 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.

    "without explanation" seems odd since the scientific community doesn't usually just take somebody's word for it. Could the seed exploit some secret mathematical weakness?

  • tudorizer 1 hour ago
    I was skimming through the images and though about asking for a print version. Happy to see this is actually an option! Great!
    • futurecat 1 hour ago
      More like plots (check the videos on my shop). Otherwise feel free to contact me we’ll sort something out.
      • tudorizer 50 minutes ago
        Even better than plain prints.
  • gruez 2 hours ago
    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 1 hour ago
      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 1 hour ago
        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.
        • drum55 48 minutes ago
          Nothing about the images seems to in any way resemble an elliptic curve. I just assumed this was claude slop given that the curves as used just look like noise, not even a curve.
        • alwa 1 hour ago
          There’s certainly a powerful Claudish streak throughout the work… from the plotter store, for example:

          > Every sphere sits where the mathematics puts it, and the differences in size come from the projection, not from me. Each version is the same curve seen another way: another prime, another number of lobes, another point of view. The torus is always Bitcoin's.

          The plots are very pretty, though I’m not sure I exactly follow how they relate to ECC in the limited sense I understand its math…

    • rustyhancock 1 hour ago
      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 1 hour ago
      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 2 hours ago
    The 4th image at the bottom corresponds to image # 2. The hyperlink is missing.

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

    • futurecat 1 hour ago
      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 1 hour ago
    This is pure slop. No elliptic curves are plotted here, it's just some AI generated drawings of spheres and meshes.
  • leodavi 2 hours ago
    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 1 hour ago
      Thank you so much for your comment!
  • HedonicEscal8r 2 hours ago
    Beautiful!
  • ingen0s 2 hours ago
    Superb!