Hacker News new | ask | show | jobs
by tuxxy 3120 days ago
FYI, I think I see you using the P-256 curve in this project.

Word of warning, this is not Bitcoin's curve. This is a NIST curve.

The library you're using (fastecdsa) has secp256k1 available to use, if that's what you want to do.

3 comments

Yes, it looks like this (and other differences) is why it's called a "Bitcoin-like" project. It also runs over HTTP instead of plain TCP/IP, so it can't be used as a Bitcoin node anyway (and there are numerous other differences).

But it's a nice example of a Bitcoin-like project, and manages to get the main ideas of Bitcoin in as an educational project.

The P-256 curve is rated as unsafe by https://safecurves.cr.yp.to/ .
I know, hence the 'bitcoin-like' title :-)