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

Signer UTXOSpendingInfo refactor #830

Merged
merged 2 commits into from Oct 25, 2019

Conversation

nkohen
Copy link
Collaborator

@nkohen nkohen commented Oct 24, 2019

Replaces all the parameters to Signer.sign with just a UTXOSpendingInfo, TxSigComponent, and a ScriptPubKey. This gets rid of the need for OverridesForNestedSigning and the Options involved there. It also makes things more extensible since in the future UTXOSpendingInfo will be a much nicer ADT and will allow us to pass which condition is being signed with on ConditionalSigner and such.

Replaces #828

@nkohen
Copy link
Collaborator Author

nkohen commented Oct 24, 2019

The first commit can be ignored as it is #798

This was referenced Oct 24, 2019
@Christewart Christewart added the core work for the core project label Oct 25, 2019
Fixed all the broken things

Replaced TxSigComponent with unsigned Transaction in Signer interface to remove illegal states
@nkohen nkohen force-pushed the signer_spending_info_refactor branch from 9cf7846 to c08fed5 Compare October 25, 2019 20:19
@Christewart Christewart merged commit 5454d67 into bitcoin-s:master Oct 25, 2019
Christewart pushed a commit that referenced this pull request May 1, 2021
* Refactored Signer interface to use TxSigComponent and UTXOSpendingInfo

Fixed all the broken things

Replaced TxSigComponent with unsigned Transaction in Signer interface to remove illegal states

* Added p2sh throw case in Signer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core work for the core project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants