0-input transactions can be ambiguously deserialized as being witness
transactions. Since the unsigned transaction is never serialized as
a witness transaction as it has no witnesses, we should always
deserialize it as a non-witness transaction and set the serialization
flags as such.
Also always serialize the unsigned transaction as a non-witness transaction.
GitHub-Pull: #13960
Rebased-From: 43811e6
8c4cd2bd89
Serialize non-witness utxo as a non-witness tx but always deserialize as witness
Strip out the witnesses when serializing the non-witness utxo. However
witness serializations are allowed, so make sure we always deserialize
as witness.
GitHub-Pull: #13960
Rebased-From: bd19cc7
517010e30e
Additional sanity checks in SignPSBTInput
GitHub-Pull: #13917
Rebased-From: 8254e99
ad6d845ac9
Only wipe wrong UTXO type data if overwritten by wallet
GitHub-Pull: #13917
Rebased-From: c05712c
dbaadc9ea9
Test that a non-witness script as witness utxo is not signed
GitHub-Pull: #13917
Rebased-From: 7c8bffd
8935869487
More tests of signer checks
GitHub-Pull: #13917
Rebased-From: 5df6f08
0333914467
fanquake added the label
Backport
on Aug 15, 2018
fanquake added this to the milestone 0.17.0
on Aug 15, 2018
fanquake requested review from achow101
on Aug 15, 2018
fanquake requested review from sipa
on Aug 15, 2018
laanwj
commented at 1:32 pm on August 15, 2018:
member
utACK0333914467466d22133e25b71ef330bb2c609958, I did the same backport (but didn’t push it for some reason) and have an empty diff
laanwj merged this
on Aug 15, 2018
laanwj closed this
on Aug 15, 2018
laanwj referenced this in commit
4a2960f73e
on Aug 15, 2018
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2025-04-11 03:13 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me