This article is a mirror article of machine translation, please click here to jump to the original article.

View: 222|Reply: 0

Introduction to Bitcoin address types Legacy, Nested SegWit, Native SegWit, and Taproot

[Copy link]
Posted on 2025-10-17 11:35:22 | | | |
The evolution of the Bitcoin protocol has led to the emergence of different types of addresses in the Bitcoin network to suit the needs of security and efficiency. For example, some wallets require you to select the address type, as shown in the figure below:



Legacy Address (P2PKH)

Protocol: BIP-44
Typical path: m/44'/0'/0'/0/0 (1st external address of the Bitcoin master account).
  • Legacy addresses are the first address format adopted by Bitcoin, and they start with the number 1, for example: 1MbeQFmHo9b69kCfFa6yBr7BQX4NzJFQq9
  • These addresses are based on Pay-to-Public-Key-Hash (P2PKH) scripts, and their transactions take up a lot of space on the blockchain, are relatively slow to process, and are not anonymous enough.

Nested SegWit Address (P2SH)

Protocol: BIP-49
Typical path: m/49'/0'/0'/0/0 (1st external address of the Bitcoin master account)
  • Nested SegWit is a P2SH Bitcoin address that starts with the number 3, for example: 3EmUH8Uh9EXE7axgyAeBsCc2vdUdKkDqWK
  • SegWit is a technological upgrade designed to address Bitcoin transaction malleability, increase network capacity, and reduce transaction fees. Addresses using SegWit reduce the size of BTC transactions, resulting in lower transfer fees.

Native SegWit Address (P2WPKH)

Protocol: BIP-84
Typical path: m/84'/0'/0'/0/0 (1st external address of the Bitcoin master account).
  • Native SegWit is a Bitcoin address that starts with bc1q and uses the Bech32 encoding scheme, for example: bc1qj89046x7zv6pm4n00qgqp505nvljnfp6xfznyw
  • Native SegWit addresses further optimize transaction processing compared to Nested SegWit, performing better in terms of cross-wallet compatibility, readability, and space-saving.

Taproot Address (P2TR)

Protocol: BIP-86,The hyperlink login is visible.
Typical path: m/86'/0'/0'/0/0 (1st external address of the Bitcoin master account).
  • Taproot is a Bitcoin address type that starts with bc1p and uses the Bech32m encoding scheme, and is also the latest Bitcoin address type, such as: bc1p8denc9m4sqe9hluasrvxkkdqgkydrk5ctxre5nkk4qwdvefn0sdsc6eqxe
  • Taproot, a major upgrade that Bitcoin activated in late 2021, introduced a new signature scheme called Schnorr signatures, which allows complex multi-signature transactions to look like regular transactions, adding privacy.

Comparison table

agreement
Address format (using Bitcoin as an example)
Address Prefix (Bitcoin Mainnet)
Core features:
BIP-44Legacy address (legacy address)1The earliest address format, which is the most compatible but has a longer length, has been gradually replaced.
BIP-49P2WPKH nested in P2SH (compatible format)3Compatible with the SegWit format for Legacy addresses, balancing compatibility with SegWit benefits (such as low fees).
BIP-84P2WPKH native SegWit addressbc1qPure SegWit format, with lower fees and higher security, is the current mainstream choice.
BIP-86P2TR (Taproot Address)bc1pIt supports the Taproot protocol, which has stronger privacy and functionality (such as supporting complex scripts), and is suitable for advanced scenarios.

.NET/C# generates the BTC Taproot address

Start by referencing the package, as follows:
The code is as follows:
As shown below:



Reference:

The hyperlink login is visible.
The hyperlink login is visible.




Previous:Detailed explanation of blockchain Base58, Base58Check, Bech32, and Bech32m coding
Next:Douyin Mall crawler analysis positioning 6 gods, risk control analysis, now it should be 7 gods X-Perseus
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com