bitchan / eccrypto

JavaScript Elliptic curve cryptography library
Creative Commons Zero v1.0 Universal
302 stars 98 forks source link

No secure curve on node? #8

Open astro opened 9 years ago

astro commented 9 years ago

The elliptic module's readme links to http://safecurves.cr.yp.to/ which lists secp256k1 as not safe. Can I use other curves from elliptic, eg. ed25519?

Kagami commented 9 years ago

Currently no, because secp256k1-node library is being used for ECC when running on Node and it provides only K-256 curve. It's possibe to use e.g. OpenSSL for other curves but I have no plans to implement this, sorry.

I will keep this issue opened since it's valid feature request. I actually wrote this simple wrapper library to use with Bitmessage which has only K-256 so haven't bothered to add anything else yet.