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

How to generate BITCOIN address using BIP-44 ? #3023

Closed ronaldoguedess closed 1 year ago

ronaldoguedess commented 1 year ago

How to generate BITCOIN address using BIP-44?

This sample gives me a BIP-84... which is the newest standard pattern. getAddressForCoin(CoinType.BITCOIN)

Can I get the BIP-44 Andress using Trust Wallet Core?

Milerius commented 1 year ago

Hello @ronaldoguedess you have bunch of example regarding Bitcoin segwit address manipulation here: https://github.com/trustwallet/wallet-core/blob/master/swift/Tests/Addresses/BitcoinAddressTests.swift - please let us know if anything else is needed.