1
0
mirror of https://github.com/bitcoinbook/bitcoinbook synced 2025-02-02 02:41:42 +00:00

Merge pull request #814 from rating89us/patch-20

ch07: add table summarizing bitcoin non-segwit and segwit addresses
This commit is contained in:
Will Binns 2021-03-04 19:21:49 +01:00 committed by GitHub
commit 07d1fa3308
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -971,6 +971,24 @@ The data part:: A minimum of 6 alphanumeric characters, the checksum encoded wit
At this time, only a few wallets accept or produce native segwit bech32 addresses, but as segwit adoption increases, you will see these more and more often.
<<segwit_addresses>> shows bitcoin non-segwit (legacy) and segwit addresses.
[[segwit_addresses]]
.Bitcoin non-segwit (legacy) and segwit addresses
|=======
|Type |Encoding |Prefix
| Legacy P2PKH Address | Base58 | 1
| Legacy Testnet P2PKH Address | Base58 | m or n
| Legacy P2SH Address | Base58 | 3
| Legacy Testnet P2SH Address | Base58 | 2
| Nested (embedded) Segwit P2SH(P2WPKH) Address | Base58 | 3
| Nested (embedded) Segwit P2SH(P2WSH) Address | Base58 | 3
| Native Segwit P2WPKH Address | Bech32 | bc1
| Native Segwit Testnet P2WPKH Address | Bech32 | tb1
| Native Segwit P2WSH Address | Bech32 | bc1
| Native Segwit Testnet P2WSH Address | Bech32 | tb1
|=======
[[segwit_txid]]
===== Transaction identifiers