trustwallet / wallet-core

Cross-platform, cross-blockchain wallet library.
https://developer.trustwallet.com/wallet-core
Apache License 2.0
2.84k stars 1.59k forks source link

Support Bitcoin Testnet Address #2611

Closed optout21 closed 2 years ago

optout21 commented 2 years ago

Is your feature request related to a problem? Please describe. Bitcoin Testnet support is a relatively frequent request, but wallet core (and Trust Wallet) does not generally support testnets. However, with the multiple derivations per coin support this is now could be used relatively easily.

Describe the solution you'd like Bitcoin now has 2 derivations: default Segwit and Legacy. We could introduce a BitcoinTestnet derivation, which would generate testnet address. Note that testnet address differs in derivation path and hrp.

bsgarage45 commented 2 years ago

https://github.com/trustwallet/wallet-core/issues/2626#issue-1399423604