GMEllipticCurveCrypto
GMEllipticCurveCrypto copied to clipboard
Add support for secp256k1
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).
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.
Just wondering what the status is for the separate project with secp256k1 support?
@ricmoo Just curious, but did you ever release your project for secp256k1 curve? My current requirements are expected to handle secp256k1 and secp256r1 curves.
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