Repository navigation
Verify PSBT inputs rather than check for fields being empty - #25595
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
862236c to
83db028
Compare
83db028 to
862236c
Compare
|
ACK 862236cf707e49174b0fa3413d42b3205d2ea3eb |
There was a problem hiding this comment.
Is having the dummy checker correct? While this will check the script, it will also pass any signature as valid.
There was a problem hiding this comment.
sounds like I need tests eh
There was a problem hiding this comment.
suggested alternative?
There was a problem hiding this comment.
To actually verify the signatures you need to use a TransactionSignatureChecker. The data that needs to be passed into that are all available in the callers to this function.
8b7f6a2 to
5cbd014
Compare
|
Fixed the tests, it now fails if signatures fail and passes when they're complete. |
There was a problem hiding this comment.
The UTXO fetching has snuck back in.
There was a problem hiding this comment.
I went back and forth, the "extra code" to me seems to make the interface cleaner? Leaving as is if that's ok.
There was a problem hiding this comment.
Should probably be specific and use MutableTransactionSignatureChecker
5cbd014 to
2e87983
Compare
|
@achow101 maybe a silent merge conflict on master? |
Yes: #24407 (comment) |
|
ACK 2e8798389aacdfcd42ca818459fb9c824af18da1 I'd like to see a test, but this could go in as is. |
7e2519a to
e76e6b5
Compare
e76e6b5 to
e133264
Compare
|
Added a basic test that fails if parent commit is reverted |
|
ACK e133264 |
In a few keys spots, PSBT finality is checked by looking for non-empty witness data.
This complicates a couple things:
On the whole I think these heavier checks are worth it in case someone is actually assuming the signatures are correct if our API is saying so.