Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fundpsbt/utxopsbt: let caller specify locktime, signpsbt: signing restrictions. #3954

Merged
merged 3 commits into from
Aug 18, 2020

Conversation

rustyrussell
Copy link
Contributor

Required for dual funding where the opener sets it.

Changelog-Added: JSON-RPC: fundpsbt takes a new locktime parameter
Signed-off-by: Rusty Russell [email protected]

@ZmnSCPxj
Copy link
Collaborator

Is this strictly necessary? Does not the caller have the ability, to just mutate the nLockTime of the returned PSBT, prior to merging with the PSBT from the opener?

Required for dual funding where the opener sets it.

Changelog-Added: JSON-RPC: `fundpsbt` takes a new `locktime` parameter
Signed-off-by: Rusty Russell <[email protected]>
Changelog-Added: JSON-RPC: `utxopsbt` takes a new `locktime` parameter
Signed-off-by: Rusty Russell <[email protected]>
…ign.

This is an extra safety check for dual funding, where we only want to sign
the inputs we provided!

Signed-off-by: Rusty Russell <[email protected]>
Changelog-Added: JSON-RPC: `signpsbt` takes an optional `signonly` array to limit what inputs to sign.
@rustyrussell
Copy link
Contributor Author

Is this strictly necessary? Does not the caller have the ability, to just mutate the nLockTime of the returned PSBT, prior to merging with the PSBT from the opener?

You could, but I think this is neater. We'll eventually want a "version" flag, too.

I've rebased and appended some more modifications, too.

@rustyrussell rustyrussell changed the title fundpsbt: let caller specify locktime. fundpsbt/utxopsbt: let caller specify locktime, signpsbt: signing restrictions. Aug 18, 2020
Copy link
Collaborator

@niftynei niftynei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK e01da0b

@niftynei niftynei merged commit 7435d50 into ElementsProject:master Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants