Skip to content
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

feat: native scrypt support on Profile Sync Controller #4656

Merged
merged 14 commits into from
Sep 6, 2024

Conversation

Jonathansoufer
Copy link
Contributor

@Jonathansoufer Jonathansoufer commented Sep 5, 2024

Explanation

This PR implements a pattern of using a React Native scrypt to encryption while dealing with React native client. This was necessary due the poor performance for mobile devices relying on the node implementation. This improves the performance for mobile clientes in a order of 20x.

References

Changelog

@metamask/profile-sync-controller

  • ADDED: Optional NativeScrypt to UserStorageController
  • ADDED: Switching logic in Encryption to use either NativeScypt or default to the original @noble-hashes/scrypt-async

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

@Jonathansoufer Jonathansoufer self-assigned this Sep 5, 2024
@Jonathansoufer Jonathansoufer requested a review from a team as a code owner September 5, 2024 13:31
Copy link
Contributor

@Prithpal-Sooriya Prithpal-Sooriya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Prithpal-Sooriya Prithpal-Sooriya changed the title feat: native scrypt support on Notifications Controller feat: native scrypt support on Profile Sync Controller Sep 6, 2024
@Prithpal-Sooriya Prithpal-Sooriya merged commit 8ade154 into main Sep 6, 2024
116 checks passed
@Prithpal-Sooriya Prithpal-Sooriya deleted the tmp/native-scrypt branch September 6, 2024 12:31
@Prithpal-Sooriya Prithpal-Sooriya added the team-notifications Notification Team changes. https://github.com/orgs/MetaMask/teams/notifications label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-notifications Notification Team changes. https://github.com/orgs/MetaMask/teams/notifications
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants