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(wallet): Implement Rust Address Generator #1627

Closed
wants to merge 22 commits into from

Conversation

coreyphillips
Copy link
Collaborator

@coreyphillips coreyphillips commented Apr 9, 2024

HODL! DO NOT MERGE

Description

  • Removes nodejs-mobile dependency and related files.
  • Adds react-native-address-generator and implements it accordingly.
  • This update brings with it a significant performance improvement when generating addresses.

Linked Issues/Tasks

Type of change

  • New feature (non-breaking change which adds functionality)
  • Refactoring (improving code without creating new functionality)

Tests

  • No test

Removes nodejs-mobile dependency and related files.
Adds react-native-address-generator and implements it accordingly.
@coreyphillips coreyphillips marked this pull request as draft April 9, 2024 15:19
@coreyphillips
Copy link
Collaborator Author

@limpbrains, does the react-native-address-generator mock here look right?

Can't seem to get it sorted.

Copy link

socket-security bot commented Apr 22, 2024

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report↗︎

Reverts EXCLUDED_ARCHS changes in project.pbxproj.
Upgrades react-native-address-generator.
if (!addressGenerator) {
const res = await setupAddressGenerator({});
if (res.isErr()) {
return '';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why return empty string instead of throwing an error? Who will handle this empty string?

Copy link
Collaborator Author

@coreyphillips coreyphillips Apr 22, 2024

Choose a reason for hiding this comment

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

This is for react-native-ldk, in the event an issue occurred generating an address/scripthash since it only expects a string.

@coreyphillips
Copy link
Collaborator Author

I'll be closing this PR in favor of this one.

@coreyphillips coreyphillips deleted the feature/rust-address-generator branch April 22, 2024 21:35
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