SomberNight
cbf1b5d9d5
py3.4 compat: follow-up e13183ea7a
7 years ago
SomberNight
ea55d886b7
follow-up 1d6f000868
I broke multisig..
7 years ago
SomberNight
e13183ea7a
bitcoin.py: SCRIPT-related clean-up. transaction.py: construct_witness
7 years ago
SomberNight
97296432a2
transaction.py: sign_txin. allow override for get_preimage_script.
7 years ago
SomberNight
1d6f000868
transaction.py: shortcut witness/scriptSig serialisation
7 years ago
SomberNight
7b50790584
do not raise BaseException
7 years ago
SomberNight
76e67daadd
changed some asserts to raise-exceptions in lib
7 years ago
SomberNight
4ff3791cb9
fix #4236
7 years ago
SomberNight
77c8010517
bitcoin.py: parameterise a few address-related methods with network
7 years ago
SomberNight
22061b4555
transaction.get_address_from_output_script now handles witness version > 0
7 years ago
SomberNight
b043c872eb
fix paying to script
7 years ago
SomberNight
135c5e805d
fix #4046
7 years ago
SomberNight
e5cba92564
transaction serialization: fix segwit coinbase case.
adjust unit tests so that they would have caught it.
7 years ago
SomberNight
063e40bf18
catch IndexError in parse_redeemScript
7 years ago
SomberNight
4b6a3e2e5d
fix #3899 ; and more aggressively catch exceptions in tx.deserialize()
7 years ago
SomberNight
ca19a36478
conflicting transactions
7 years ago
SomberNight
e5f239dd28
follow-up 70aa1f1db9
7 years ago
SomberNight
6faef7efe3
remove comment
7 years ago
SomberNight
889456dc77
follow-up prev commit. better handling of p2sh-segwit. added comment to describe the problem for native segwit.
7 years ago
SomberNight
70aa1f1db9
fix #3788
7 years ago
SomberNight
d8a9c9720a
follow-up 65eae139af
7 years ago
SomberNight
aaf5e32207
coinchooser fee calculation now uses tx weights. more precise fee calculation for segwit and mixed-segwit txns.
7 years ago
SomberNight
b751e5e7d3
fix: tx size estimation for multisig
7 years ago
SomberNight
2a3c41b24f
coinchooser: "privacy" policy now prefers confirmed coins. removed "priority" policy.
7 years ago
SomberNight
0aee9bbbb0
fix spending from multisig (broken by 8be777e882
)
7 years ago
SomberNight
8be777e882
tx size estimation: handle uncompressed pubkeys
7 years ago
SomberNight
e373f50596
follow-up prev commit
7 years ago
SomberNight
a2a25e4738
better segwit tx size estimation
7 years ago
Justin Turner Arthur
857eb4ac1d
Remove unused imports. Explicitly import a few deep imports.
7 years ago
SomberNight
f8518c78d8
remove Transaction.requires_fee()
7 years ago
ThomasV
bf2c07ff2a
fix #3244
7 years ago
SomberNight
b28f8b3ebd
make tx deserialization more robust to ill-formed tx
7 years ago
ThomasV
358068a0c1
fix #3197 : parse pubkey
7 years ago
SomberNight
32e88495ae
fix: transaction.parse_witness() for coinbase
7 years ago
ThomasV
8683d71711
fix: witness serialization
7 years ago
SomberNight
8e007f026d
fix: witness for non-segwit txins
7 years ago
ThomasV
c72123d708
fix #3014
7 years ago
ThomasV
b1cc81a6f6
fix #3011
7 years ago
ThomasV
9aa3f2d9e2
add txin_type in add_input_info, remove inefficient search
7 years ago
ThomasV
9f6e174b4f
fix #2961
7 years ago
ThomasV
4273c607b7
fix #2961
7 years ago
SomberNight
902ec2dc69
fix: unresolved variable _bytes in transaction.parse_redeemScript()
7 years ago
ThomasV
e8b564c0e7
Extend Wallet Import Format with txin type. Extend class Imported_Wallet.
7 years ago
ThomasV
ab2d0f389c
fix 2904
7 years ago
SomberNight
2fbc70d860
Moving to virtual tx size instead of total tx size.
7 years ago
ThomasV
c12c1685d7
serialize value of incomplete inputs in the witness field. fix p2wsh-in-p2sh deserialization
7 years ago
ThomasV
fcea2a065d
add support for p2wsh-in-p2sh
7 years ago
ThomasV
10b35e3545
follow-up 0abb38cf51
7 years ago
ThomasV
5416a4ea8a
serialize value for segwit-p2sh inputs too
7 years ago
Jochen Hoenicke
0abb38cf51
Fix parsing of witnesses
The lengths in the witness structure are `var_int` not pushes.
From BIP-141:
The `witness` is a serialization of all witness data of the transaction.
Each txin is associated with a witness field. A witness field starts
with a `var_int` to indicate the number of stack items for the txin. It is
followed by stack items, with each item starts with a `var_int` to
indicate the length. Witness data is NOT script.
This bug was triggered by tx
d379210d85c1346dafbfd60e3cbc5c5573e50b1f9576d39f177afb2b378f1b98
7 years ago