-
Notifications
You must be signed in to change notification settings - Fork 366
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
refactor: replace asmcrypto.js with native crypto module #6550
base: x
Are you sure you want to change the base?
Conversation
- Remove asmcrypto.js dependency usage - Replace with native Node.js crypto module implementations - Maintain same function signatures and behavior - All tests passing with identical snapshots Co-Authored-By: [email protected] <[email protected]>
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/@polkadot/[email protected], npm/@polkadot/[email protected], npm/@polkadot/[email protected], npm/@polkadot/[email protected], npm/@polkadot/[email protected], npm/@polkadot/[email protected] |
@@ -30,6 +30,7 @@ | |||
"@formatjs/intl-getcanonicallocales": "^1.9.2", | |||
"@formatjs/intl-locale": "^2.4.47", | |||
"@formatjs/intl-pluralrules": "^4.3.3", | |||
"@metamask/react-native-aes-crypto": "1.2.2", |
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.
remove
@@ -54,6 +55,7 @@ | |||
"expo-barcode-scanner": "12.9.3", | |||
"expo-blur": "12.9.1", | |||
"expo-clipboard": "5.0.1", | |||
"expo-crypto": "14.0.2", |
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.
remove
@@ -851,7 +855,7 @@ describe('Secret Module Tests', () => { | |||
privateKeys[index].extendedKey.key, | |||
); | |||
}); | |||
}); | |||
}, 10_000); |
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.
异步改造后,派生公钥方法执行时间过长,需用 Promise.all 优化
No description provided.