Add remove_partial_sigs and try_finalize to SignOptions#621
Conversation
47642ff to
4bbb9ac
Compare
4bbb9ac to
e272a14
Compare
|
I agree |
danielabrozzoni
left a comment
There was a problem hiding this comment.
Concept ACK, the code looks good!
I have a couple of comments.
I agree that the current names are a bit confusing, I really like Steve's try_finalize/remove_partial_sigs suggestion :)
| /// what its value is | ||
| /// | ||
| /// Defaults to `false` which will only allow signing using `SIGHASH_ALL`. | ||
| /// Defaults to `false` which will remove partial_sigs after input is signed |
There was a problem hiding this comment.
It looks like you've accidentally modified allow_all_sighashes docs...
e272a14 to
09d4bc6
Compare
c018a7a to
c324eb1
Compare
rajarshimaitra
left a comment
There was a problem hiding this comment.
tACK c324eb1
Just few nits..
| // remove finalized input partial_sigs if remove_partial_sigs is set as true in SignOptions | ||
| // do not remove finalized input partial_sigs if remove_partial_sigs is set as false in SignOptions. |
There was a problem hiding this comment.
I feel like this comment is redundant.. It self evident from the statement below what its trying to do.
| /// Whether partial_sigs in input should be removed when the psbt inputs are signed in finalizing psbt. | ||
| /// | ||
| /// Defaults to `true` which will remove partial_sigs in inputs after signing. |
There was a problem hiding this comment.
Small doc nit. This sentences can be simplified a little.
| /// Whether partial_sigs in input should be removed when the psbt inputs are signed in finalizing psbt. | |
| /// | |
| /// Defaults to `true` which will remove partial_sigs in inputs after signing. | |
| /// Whether to remove partial_sigs from psbt inputs while finalizing psbt. | |
| /// | |
| /// Defaults to `true` which will remove partial_sigs after finalizing. |
726a14d to
be8c9dc
Compare
rajarshimaitra
left a comment
There was a problem hiding this comment.
tACK be8c9dc
All looks good to me.. Just one minor nit..
| - Signing Taproot PSBTs (key spend and script spend) | ||
| - Support for `tr()` descriptors in the `descriptor!()` macro | ||
| - Add support for Bitcoin Core 23.0 when using the `rpc` blockchain | ||
| - Added `remove_partial_sigs` and `try_finalize` to `SignOptions` |
There was a problem hiding this comment.
| - Added `remove_partial_sigs` and `try_finalize` to `SignOptions` | |
| - Add `remove_partial_sigs` and `try_finalize` to `SignOptions` |
|
Can you please rebase on master, to pick up the CI changes? :) |
46a2f4e to
5eac541
Compare
|
tACK 5eac541 |
5eac541 to
6a79f39
Compare
Sorry for replying it previously. I saw some places using "added" so I didn't change it. But yea happy to change that if that's way we want :) |
There was a problem hiding this comment.
Sorry for replying it previously. I saw some places using "added" so I didn't change it. But yea happy to change that if that's way we want :)
No issues, not a big deal..
ACK 6a79f39
6a79f39 to
e3a17f6
Compare
|
I noticed the CHANGELOG message ended up in the wrong place, I'll fix it in the release branch. |
Description
This PR is to add 2 keys(
try_finalizeandremove_partial_sigs) inSignOptions. See this issue for detail #612Notes to the reviewers
I found the negative naming of these 2 new keysdo_not_finalizeanddo_not_remove_partial_sigsare a bit confusing(like most negative named paremeter/variable). Should we actually change it back to positive naming(do_finalizeanddo_remove_partial_sigs)?Checklists
All Submissions:
cargo fmtandcargo clippybefore committingNew Features:
CHANGELOG.mdBugfixes: