Skip to content

BIP 174: Add test vectors for additional unsigned tx serialization - #1099

Merged
luke-jr merged 1 commit into
bitcoin:masterfrom
achow101:more-psbt-tests
Apr 22, 2021
Merged

luke-jr merged 1 commit into
bitcoin:masterfrom
achow101:more-psbt-tests

Conversation

@achow101

@achow101 achow101 commented Apr 8, 2021

Copy link
Copy Markdown
Member

There are some edge cases with unsigned tx serialization, so this adds
test vectors for them. Specifically, an unsigned tx with witness
serialization is invalid, a transaction with 0 inputs and 0 outputs is
valid, and a transaction with 0 inputs and non-0 outputs is valid.

There are some edge cases with unsigned tx serialization, so this adds
test vectors for them. Specifically, an unsigned tx with witness
serialization is invalid, a transaction with 0 inputs and 0 outputs is
valid, and a transaction with 0 inputs and non-0 outputs is valid.
@luke-jr
luke-jr merged commit 375f11a into bitcoin:master Apr 22, 2021
achow101 added a commit to bitcoin-core/HWI that referenced this pull request Aug 10, 2026
…st vectors

df8c3f5 test: add remaining BIP 174 and BIP 370 test vectors (Sjors Provoost)
1ff27e0 test: add BIP 370 timelock determination vectors (Sjors Provoost)
498e85a psbt: enforce required locktime bounds (Sjors Provoost)
2a431b8 psbt: reject PSBTv2 input and output fields in PSBTv0 (Sjors Provoost)
8a40523 psbt: track whether an unsigned tx key was seen (Sjors Provoost)
b34f94a psbt: parse the global unsigned tx without witness data (Sjors Provoost)
f0520e7 psbt: assume final sequence when PSBT_IN_SEQUENCE is omitted (Sjors Provoost)
2db24a2 psbt: set locktime on the transaction, not the PSBT (Sjors Provoost)

Pull request description:

  Each fix / hardening commit introduces the test vectors that cover it.

  Mostly straight-forward, but `psbt: parse the global unsigned tx without witness data` is worth a closer look. IIUC it catches up with bitcoin/bips#1099.

ACKs for top commit:
  achow101:
    ACK df8c3f5

Tree-SHA512: 1fedaca5eeceb9c3c5df8ef87041d0ba97be87b876ebe8eadf4173f19e93d370438edb1e8d98a7363e661228bea6f3f094fc91e13e6975a5dfabce475e285303
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants