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

fix: React Native's BIP32 implementation should use array instead of Buffer #2502

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

ivaylonikolov7
Copy link
Contributor

Description:
We should use Arrays instead of Buffers whenever possible because of React Native's inability to deal with Buffers BIP32. This PR changes packages/cryptography/src/primitive/Bip32.native.js. There is no need to change packages/cryptography/src/primitive/BIP32.js as it is used in different environment. And the web version of this file already uses the correct functions.

Related issue(s):
#2458

Fixes #
#2458

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Copy link

sonarcloud bot commented Sep 4, 2024

Copy link
Contributor

@agadzhalov agadzhalov left a comment

Choose a reason for hiding this comment

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

LGTM

@ivaylonikolov7 ivaylonikolov7 merged commit 3f2238f into main Sep 10, 2024
13 checks passed
@ivaylonikolov7 ivaylonikolov7 deleted the feat/cryptography-buffer-issue-in-react-native branch September 10, 2024 15:29
@ivaylonikolov7 ivaylonikolov7 mentioned this pull request Sep 12, 2024
ivaylogarnev-limechain pushed a commit that referenced this pull request Sep 19, 2024
…ncompatibility (#2502)

Signed-off-by: Ivaylo Nikolov <[email protected]>
Signed-off-by: ivaylogarnev-limechain <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants