stack_wallet/test/services/coins/bitcoincash
sneurlax 4aec78f0ed
Add BIP44 derivation paths to Bitcoin Cash wallet restoration process (#330)
* add new derive path for bch

and make it the new default.  we currently use slip44 (coinType 145) as the default

* add default cases to DerivePathType switches now failing

* normalize DerivePathType errors

log failing derivePathType or type, as appropriate

* add default derive path case to paynym interface

* use slip44 in bch wallet

* linting

* WIP look up both bip44 and slip44 addresses

slip44 is used by default

* typo fix

* typo fix

thanks Julian

* remove print

* use slip44 addresses by default

* use AddressType unknown for bip44 derive path type

* use address type unknown in _getCurrentAddressForChain, too

* generate different keys for SLIP44 and BIP44 paths

* couple more slips

* return slip44 from addressType

* slip before bip

* revert slip44-bip44, bch's bip44->bch44

* set bch44 derive path to type unknown

do not comingle paths in later output selection by index

* handle bip44 and bch44 path addresses when handling outputs

* use bip44 by default

* typofix

* typo fix in the typo fix

yo dawg

* separate new derivation path functions into their own non-testnet block

* cleanup

* disable test

should re-enable if it can be fixed with the test mnemonic in hand

---------

Co-authored-by: julian <julian@cypherstack.com>
2023-02-02 09:24:26 -06:00
..
bitcoincash_history_sample_data.dart Update tests for bch after adding P2SH 2022-09-26 10:42:46 +02:00
bitcoincash_transaction_data_samples.dart WIP: TEsts for bitcoincash 2022-09-12 09:44:04 +02:00
bitcoincash_utxo_sample_data.dart WIP: TEsts for bitcoincash 2022-09-12 09:44:04 +02:00
bitcoincash_wallet_test.dart Add BIP44 derivation paths to Bitcoin Cash wallet restoration process (#330) 2023-02-02 09:24:26 -06:00
bitcoincash_wallet_test.mocks.dart clean up tests for now 2023-01-20 10:22:18 -06:00