-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace 1.4 by pure secp256k1 implementation #79
Conversation
This logic was based on BitcoinKit framework and was changed to our needs.
This logic was based on BitcoinKit framework and was changed to our needs.
…st use secp256k1.swift lib secp256k1 lib uses libsecp256k1 internally that is the same one used by Prism SDK1.4 internally
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -0,0 +1,62 @@ | |||
// | |||
// File.swift |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// File.swift | |
// ECVerify.swift |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uhh cannot forget actually to delete all this comment nice catch :)
This is a great step since 1.4 added a few issues that are problematic to development.
Mainly it didn't allow for targets like: macOS, watchOS, tvOS.
Besides that it had issues running on arm64 Macs making any developer that intended to use the SDK to disregard arm64 iOS sim.
Now the target macOS was added and the SDK runs well in Xcode arm64 mode without the need to use Rosetta.
Tests were added to make sure the cryptographic logic is correct and checks were made before this change to acknowledge that the outputs from the new implementation were the same as the 1.4 outputs.