-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #112: Segregated Witness support
5cd3467 fixed issue in is_witness_scriptpubkey where self[0] is interpretted as str instead of the necessary int (Surya Bakshi) 2b50596 Add segwit block (de)serialization. (#9) (the9ull) d8a1a0f Closely match Core's (de-)serialization; remove old test case (Bob McElrath) 0c09892 Encode hashtype as signed (following bitcoind) (Bob McElrath) eca69b7 CTxWitness class, new message types (Bob McElrath) f4d1d2a BIP143 implementation and test vectors (Bob McElrath) 580f466 Initial segwit implementation, works with P2WPKH addresses (Bob McElrath) Pull request description: This is my initial implementation. It correctly serializes and deserializes P2WPKH segwit transactions. I haven't tested the other transaction types. Please don't merge this yet, but I wanted to make it available for others to work on. TODO - ~~BIP 143 tx signing~~ - ~~`CBlock` modifications to support witness data~~ - ~~P2WSH and BIP16 embedded scripts~~ - ~~tests!~~ Tree-SHA512: bc96c263467ae3f27aa86472afb4e29e6c1d81da527832ed153b05faa06ef8152ce518f9c9c1c1fdae45de7f93173c77fa237b160d5cfb7d1068532a8849c9f3
- Loading branch information
Showing
9 changed files
with
538 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
*.sw? | ||
*.pyc | ||
|
||
local*.cfg | ||
|
@@ -8,3 +8,4 @@ local*.cfg | |
build/ | ||
htmlcov/ | ||
python_bitcoinlib.egg-info/ | ||
dist/ |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.