1
0
mirror of https://github.com/bitcoin/bips.git synced 2026-05-18 16:59:30 +00:00

Fix links in BIP142-144. Corrections in BIP142.

This commit is contained in:
Johnson Lau
2016-01-12 03:09:50 +08:00
committed by Johnson Lau
parent 858a4a70ea
commit ae529c3f04
3 changed files with 7 additions and 7 deletions

View File

@@ -19,8 +19,8 @@ To define standard payment addresses for native segwit transactions to promote e
=== P2PKH segwit address ===
The first new Bitcoin address format defined is specific to pay-to-public-key-hash segwit transaction. The scriptPubKey is a single push of version-0 witness program in this form,
<0x0076A914{20-byte-hash-value}88AC>
The first new Bitcoin address format defined is specific to pay-to-public-key-hash segwit transaction. The scriptPubKey is an OP_0 followed by a push of version 0 witness program:
OP_0 <DUP HASH160 <20-byte-hash> EQUALVERIFY CHECKSIG>
The new address is encoded exactly in the same way as the original pay-to-public-key-hash address:
base58-encode: [1-byte version][20-byte-hash-value][4-byte checksum]
Version byte is 0x19 for a main-network address, 0x41 for a testnet address. The following 20-byte is the public key hash. And the 4-byte checksum is the first four bytes of the double SHA256 hash of the version and public key hash.
@@ -151,7 +151,7 @@ From arbitrary witness program to general segwit address: https://gist.github.co
* [[bip-0013.mediawiki|BIP 13: Address Format for pay-to-script-hash]]
* [[bip-0016.mediawiki|BIP 16: Pay to Script Hash (aka "/P2SH/")]]
* [[bip-xxxx.mediawiki|BIP x: Segregated Witness]] https://github.com/bitcoin/bips/pull/265
* [[bip-0141.mediawiki|BIP 141: Segregated Witness]]
== Copyright ==
This work is placed in the public domain.