waxwing on Nostr: Does anyone know if anyone has done an implementation of secq [*] in code? I'm pretty ...
Does anyone know if anyone has done an implementation of secq [*] in code? I'm pretty sure not, but asking just in case.
I can ( and probably will) just do it in python (literally just swap p and N), it'll let me play with algos but 100% useless for anything real. Needs optimised algorithms, even if you ignored constant time implementation.
[*] secq256k1 is a kind of 'mirror' version of the secp256k1 that we use in bitcoin. The curve group order of secq is the finite field order of secp and vice versa. It's some kind of very deep fact that such 'mirror pairs' of elliptic curves of prime order are much more common than you would expect by chance. Why care? It makes something similar to merkle trees be possible using curve points, which is remarkably powerful.
Published at
2023-12-10 17:50:15Event JSON
{
"id": "47c33b6b7b2b130ab06cd264b3e92efd6879a4d25a50700069b1ce0a80e8e485",
"pubkey": "675b84fe75e216ab947c7438ee519ca7775376ddf05dadfba6278bd012e1d728",
"created_at": 1702230615,
"kind": 1,
"tags": [],
"content": "Does anyone know if anyone has done an implementation of secq [*] in code? I'm pretty sure not, but asking just in case.\n\nI can ( and probably will) just do it in python (literally just swap p and N), it'll let me play with algos but 100% useless for anything real. Needs optimised algorithms, even if you ignored constant time implementation.\n\n[*] secq256k1 is a kind of 'mirror' version of the secp256k1 that we use in bitcoin. The curve group order of secq is the finite field order of secp and vice versa. It's some kind of very deep fact that such 'mirror pairs' of elliptic curves of prime order are much more common than you would expect by chance. Why care? It makes something similar to merkle trees be possible using curve points, which is remarkably powerful.",
"sig": "c78ea3dd26730d29545ca00d9dcb40bc855d8c7f8c6dccb4ffa6e77bfa81da0d768e1cecabb406d01c521f51d3499cde6b8cecfdd7b1f54c8edb80a44d323d63"
}