-
Notifications
You must be signed in to change notification settings - Fork 13
Add fast native crypto library #3352
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
Closed
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Conflicts: # yarn.lock fix set problems stash work # Conflicts: # yarn.lock stash work # Conflicts: # packages/core-mobile/index.js performance tracking # Conflicts: # yarn.lock stash work make it more solid fix patch for ios update sentry fix patches
30b3793 to
227bd89
Compare
25b7908 to
a67653e
Compare
b8c4cea to
e724773
Compare
e724773 to
88705f9
Compare
# Conflicts: # yarn.lock
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Please provide:
This pull request adds integration for the new
react-native-nitro-avalabs-cryptonative module to enable fast, native-backed cryptographic operations in the mobile codebase. It updates dependency management, Metro bundler configuration, and workspace settings to support this module and its required environment. The changes also add Nitro-backed fast-paths to patched cryptography libraries for React Native, improving performance and compatibility.Native Crypto Integration
react-native-nitro-avalabs-cryptoas a workspace dependency inpackages/core-mobile/package.json, and included it in the list of dependencies and Metro bundler resolution paths for React Native. Also updatedmetro.config.jsto watch and resolve the new package. [1] [2] [3]NitroAvalabsCrypto.podspec) to support iOS build and autolinking for the native module, including custom build scripts for secp256k1.Patched Crypto Libraries for Nitro Support
@bitcoinerlab/secp256k1and@noble/curveslibraries to use Nitro-backed native implementations for key cryptographic operations (sign, verify, point addition, schnorr), with fallback to JS if native is unavailable. Also added React Native and browser shims to theirpackage.jsonfiles for compatibility. [1] [2]Workspace and Dependency Management
nitrogen,react-native-nitro-modules) to the rootpackage.jsonand updated script commands to support Nitro workspace operations. [1] [2].gitignore,.watchmanconfig) in the new crypto package. [1] [2]Miscellaneous Updates
react-native.config.js.These changes collectively enable Nitro-powered cryptographic operations in the mobile app, improving performance and compatibility for React Native environments.
QA Testing (if applicable)
Checklist
Please check all that apply (if applicable)