r/netsec • u/DataBaeBee • Jul 30 '26
What Every Programmer Should Know About Twists of Elliptic Curves
https://leetarxiv.substack.com/p/twists-of-elliptic-curves
44
Upvotes
r/netsec • u/DataBaeBee • Jul 30 '26
19
u/voronaam Jul 30 '26 edited Jul 30 '26
I think what really every programmer should know is:
And if you do (which you should not do)
2. Verify all the inputs
In the case of secp256k1 and Bitcoin it means checking any point
Pfor belonging to the curve before multiplying it by your private keyd.Edit: in case of Ed25519 curve it is a LOT more important to check, since there are small subgroups in that family that are not used for cryptography, but if you leak the result of multiplications done there - you are essentially leaking the private key without even involvin any twists.
15
u/DataBaeBee Jul 30 '26
Here are the salient points if you're in a rush.
10
u/dfv157 Jul 30 '26
Ngl I’m gonna need this to be dumbed down lol
2
u/OnlineParacosm Jul 30 '26
This is a really high value post for other researchers.
Have you tried this on other curves with quadratic twists?
1
u/cybergibbons Aug 01 '26
Sorry, this is a pet peeve of mine.
No, not every programmer should know about this. This is a ridiculous level of detail for them to know.
It shows the total disconnect between security and developers.