Kitura / BlueECC

Elliptic-curve cryptography for Swift
Apache License 2.0
92 stars 35 forks source link

fix: Replace ECAlgorithm with EllipticCurve #5

Closed Andrew-Lees11 closed 5 years ago

Andrew-Lees11 commented 5 years ago

This pull request replaces ECAlgorithm with Curve.

This is now a public struct that has a public representation of the curve for comparisons and checking on your key and all the internal variables that are used for encrypting and signing.

This was done to replace the "CurveID" String with an Struct version of enum limiting the comparable options.

Andrew-Lees11 commented 5 years ago

We have kept curveId so that this is no longer a breaking change.