trustwallet / wallet-core

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

btc bip44 derivationPath is Error generating address #1184

Closed tiantianlikeu closed 3 years ago

tiantianlikeu commented 3 years ago

Describe the bug on ios swift I'm already here coins.json Change the path of BTC to bip44,but generated btc address is bip84

To Reproduce image

Expected behavior It is expected that the address of BTC bip44 can be generated

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

hewigovens commented 3 years ago

changing deviation path in coins.json will change the private key, if you want to legacy address, you need to use BitcoinAddress class, CoinType method will always derive bc1 address