summaryrefslogtreecommitdiff
path: root/bip-0143.mediawiki
diff options
context:
space:
mode:
authorJohnson Lau <jl2012@xbt.hk>2016-01-21 22:53:32 +0800
committerJohnson Lau <jl2012@xbt.hk>2016-01-21 22:53:32 +0800
commit7e4dec0d9368a3b8c795fa25fe813932e16a57fb (patch)
tree271fe8fde32ef3dd33990cce3aebb1d5a76d32cb /bip-0143.mediawiki
parentc25f1e7b5f548a2cbda63dbf2ebdf946cf30a527 (diff)
downloadbips-7e4dec0d9368a3b8c795fa25fe813932e16a57fb.tar.xz
Links to reference implementation
Diffstat (limited to 'bip-0143.mediawiki')
-rw-r--r--bip-0143.mediawiki6
1 files changed, 3 insertions, 3 deletions
diff --git a/bip-0143.mediawiki b/bip-0143.mediawiki
index 093e477..29e5e07 100644
--- a/bip-0143.mediawiki
+++ b/bip-0143.mediawiki
@@ -1,4 +1,4 @@
-<pre>
+<pre>
BIP: 143
Title: Transaction Signature Verification for Version 0 Witness Program
Author: Johnson Lau <jl2012@xbt.hk>
@@ -41,7 +41,7 @@ The item 5:
*For P2WPKH witness program, the scriptCode is <code>0x1976a914{20-byte-pubkey-hash}88ac</code>.
*For P2WSH witness program,
**if the <code>witnessScript</code> does not contain any <code>OP_CODESEPERATOR</code>, the <code>scriptCode</code> is a <code>varInt</code> for the length of the <code>witnessScript</code>, followed by the <code>witnessScript</code>.
-**if the <code>witnessScript</code> contains any <code>OP_CODESEPERATOR</code>, the <code>scriptCode</code> is the evaluated script, with all <code>OP_CODESEPARATOR</code> and everything up to the last <code>OP_CODESEPARATOR</code> before the signature checking opcode being executed removed, and prepended by a <code>varInt</code> for the length of the trancated script.
+**if the <code>witnessScript</code> contains any <code>OP_CODESEPERATOR</code>, the <code>scriptCode</code> is the evaluated script, with all <code>OP_CODESEPARATOR</code> and everything up to the last <code>OP_CODESEPARATOR</code> before the signature checking opcode being executed removed, and prepended by a <code>varInt</code> for the length of the truncated script.
The item 6 is a 8-byte value of the amount of bitcoin spent in this input.
@@ -191,7 +191,7 @@ As a soft fork, older software will continue to operate without modification. No
== Reference Implementation ==
-https://github.com/sipa/bitcoin/commits/segwit3
+https://github.com/sipa/bitcoin/commits/segwit
== References ==