GMEllipticCurveCrypto icon indicating copy to clipboard operation
GMEllipticCurveCrypto copied to clipboard

Add support for secp256k1

Open ricmoo opened this issue 10 years ago • 4 comments

Add support for the secp256k1 curve, popular for Bitcoin.

Adding this will likely need to deprecate the automatic curveForKey: selectors, as there will then be multiple (ambiguous) options for a given key.

This might be a good time to switch to the micro-ecc library, which is newer and still maintained (by the same author as easy-ecc, kmackay).

ricmoo avatar Dec 12 '14 02:12 ricmoo

Actually, instead of adding it to this project, I currently plan to keep this project specific to the random curves (secpXXXr1) and am working on a separate project for the secp256k1 curve.

This will avoid breaking auto-detection of the curve.

ricmoo avatar May 19 '15 16:05 ricmoo

Just wondering what the status is for the separate project with secp256k1 support?

gmckenzi avatar Feb 09 '17 15:02 gmckenzi

@ricmoo Just curious, but did you ever release your project for secp256k1 curve? My current requirements are expected to handle secp256k1 and secp256r1 curves.

ismyhc avatar Jun 26 '18 13:06 ismyhc

By the way for anyone else looking, I actually pulled in the mirco-ecc c library and am using in swift. Its working great so far :)

https://github.com/kmackay/micro-ecc

ismyhc avatar Jun 27 '18 20:06 ismyhc