summaryrefslogtreecommitdiff
path: root/bip-0142.mediawiki
diff options
context:
space:
mode:
authorJohnson Lau <jl2012@users.noreply.github.com>2016-01-12 03:09:50 +0800
committerJohnson Lau <jl2012@xbt.hk>2016-01-12 03:21:10 +0800
commitae529c3f0488fec6ebc335f2bdb0e623af6a6a5c (patch)
tree8d1fd95cc2cfa74f1319f526ef8001d1cb5d8913 /bip-0142.mediawiki
parent858a4a70ea2dfde140c22e5535d1eabb182663b2 (diff)
downloadbips-ae529c3f0488fec6ebc335f2bdb0e623af6a6a5c.tar.xz
Fix links in BIP142-144. Corrections in BIP142.
Diffstat (limited to 'bip-0142.mediawiki')
-rw-r--r--bip-0142.mediawiki6
1 files changed, 3 insertions, 3 deletions
diff --git a/bip-0142.mediawiki b/bip-0142.mediawiki
index 7efeca7..fdf5202 100644
--- a/bip-0142.mediawiki
+++ b/bip-0142.mediawiki
@@ -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.