Skip to content

Which BitcoinAddress should I use? #2053

Answered by optout21
AlleniCode asked this question in Q&A
Discussion options

You must be logged in to vote

There are two kinds of Bitcoin addresses: the Segwit and the so called P2PK addresses.
Segwit addresses start with 'bc1' and are more modern, TrustWallet uses segwit addresses (if you create a new wallet).
P2PK addresses start with '1', are legacy, TW supports them as legacy (e.g. as destination address).

deriveAddressFromPublicKey uses the default SegwitAddress. You can use it directly using BitcoinSegwitAddress.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AlleniCode
Comment options

Answer selected by optout21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #2052 on March 03, 2022 14:45.