1
0
mirror of https://github.com/bitcoin/bips.git synced 2025-05-12 12:03:29 +00:00

Links to reference implementation

This commit is contained in:
Johnson Lau 2016-01-21 22:53:32 +08:00
parent c25f1e7b5f
commit 7e4dec0d93
4 changed files with 7 additions and 5 deletions

View File

@ -254,7 +254,7 @@ Special thanks to Gregory Maxwell for originating many of the ideas in this BIP
== Reference Implementation == == Reference Implementation ==
https://github.com/sipa/bitcoin/commits/segwit3 https://github.com/sipa/bitcoin/commits/segwit
== References == == References ==

View File

@ -140,6 +140,8 @@ Using 0x06 as witness version, followed 0x00 as witness version, and a 0x00 padd
== Reference implementation == == Reference implementation ==
https://github.com/theuni/bitcoin/commit/ede1b57058ac8efdefe61f67395affb48f2c0d80
== References == == References ==
* [[bip-0013.mediawiki|BIP 13: Address Format for pay-to-script-hash]] * [[bip-0013.mediawiki|BIP 13: Address Format for pay-to-script-hash]]

View File

@ -1,4 +1,4 @@
<pre> <pre>
BIP: 143 BIP: 143
Title: Transaction Signature Verification for Version 0 Witness Program Title: Transaction Signature Verification for Version 0 Witness Program
Author: Johnson Lau <jl2012@xbt.hk> 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 P2WPKH witness program, the scriptCode is <code>0x1976a914{20-byte-pubkey-hash}88ac</code>.
*For P2WSH witness program, *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> 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. 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 == == Reference Implementation ==
https://github.com/sipa/bitcoin/commits/segwit3 https://github.com/sipa/bitcoin/commits/segwit
== References == == References ==

View File

@ -116,7 +116,7 @@ MSG_WITNESS_BLOCK requests will return a block message with transactions that ha
Special thanks to Gregory Maxwell for originating many of the ideas in this BIP and Luke-Jr for figuring out how to deploy this as a soft fork. Special thanks to Gregory Maxwell for originating many of the ideas in this BIP and Luke-Jr for figuring out how to deploy this as a soft fork.
== Reference Implementation == == Reference Implementation ==
https://github.com/sipa/bitcoin/commits/segwit3 https://github.com/sipa/bitcoin/commits/segwit
== Copyright == == Copyright ==
This document is placed in the public domain. This document is placed in the public domain.