Skip to content

Add BIP44 derivation paths to Bitcoin Cash wallet restoration process - #330

Merged
julian-CStack merged 29 commits into
stagingfrom
bch/bitcoin.com
Feb 2, 2023
Merged

julian-CStack merged 29 commits into
stagingfrom
bch/bitcoin.com

Conversation

@sneurlax

Copy link
Copy Markdown
Member

Closes #189

Semantically changes BIP44 -> SLIP44 (we use SLIP44 m/44/145 for BCH), adds m/44/0 as BIP44 derivation path, and checks both SLIP44 and BIP44 addresses for outputs during restoration.

SLIP44 addresses are still used as the default derivation path

@codecov-commenter

codecov-commenter commented Feb 1, 2023 •

Copy link
Copy Markdown

Codecov Report

Merging #330 (e3aaa8e) into staging (95ff076) will decrease coverage by 0.07%.
The diff coverage is 1.90%.

❗ Current head e3aaa8e differs from pull request most recent head 7ceac0e. Consider uploading reports for the commit 7ceac0e to get more accurate results

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@             Coverage Diff             @@
##           staging     #330      +/-   ##
===========================================
- Coverage    10.18%   10.11%   -0.07%     
===========================================
  Files          514      517       +3     
  Lines        56342    56694     +352     
===========================================
+ Hits          5736     5737       +1     
- Misses       50606    50957     +351     
Impacted Files Coverage Δ
lib/services/coins/dogecoin/dogecoin_wallet.dart 10.40% <0.00%> (-0.01%) ⬇️
lib/services/coins/litecoin/litecoin_wallet.dart 0.00% <0.00%> (ø)
lib/services/coins/namecoin/namecoin_wallet.dart 6.23% <0.00%> (-0.02%) ⬇️
lib/services/coins/particl/particl_wallet.dart 5.93% <0.00%> (-0.01%) ⬇️
lib/services/mixins/paynym_wallet_interface.dart 4.74% <0.00%> (-0.68%) ⬇️
lib/utilities/enums/derive_path_type_enum.dart 0.00% <ø> (ø)
...services/coins/bitcoincash/bitcoincash_wallet.dart 9.81% <1.29%> (-0.26%) ⬇️
lib/services/coins/bitcoin/bitcoin_wallet.dart 7.98% <33.33%> (-0.14%) ⬇️
lib/utilities/util.dart 18.18% <0.00%> (-4.05%) ⬇️
lib/widgets/desktop/secondary_button.dart 45.09% <0.00%> (-3.33%) ⬇️
... and 16 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

should re-enable if it can be fixed with the test mnemonic in hand
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.

3 participants