Uh oh!
There was an error while loading. Please reload this page.
Add remove_partial_sigs and try_finalize to SignOptions - #621
Conversation
47642ff to
4bbb9acCompareUh oh!
There was an error while loading. Please reload this page.
4bbb9ac to
e272a14Comparenotmandatory
commented
Jun 5, 2022
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 :)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| /// 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
09d4bc6Comparec018a7a to
c324eb1Compare
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
be8c9dcCompare
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` |
danielabrozzoni
commented
Jun 28, 2022
Can you please rebase on master, to pick up the CI changes? :) |
46a2f4e to
5eac541Comparedanielabrozzoni
commented
Jun 29, 2022
tACK 5eac541 |
5eac541 to
6a79f39Comparekafaichoi
commented
Jul 2, 2022
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
e3a17f6Comparenotmandatory
commented
Jul 6, 2022
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: