-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Refactor rawtransaction_util's SignTransaction to separate prevtx parsing #16798
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
Conversation
…rsing be separate
|
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK 39034f1. No change since previously reviewed b49bbb939be92a67ff77c3f7bca5bb94dd141906, #16341 (review) other than rebase with no conflicts.
|
ACK 39034f1 Show signature and timestampSignature: Timestamp of file with hash |
|
utACK 39034f1 |
…ate prevtx parsing 39034f1 Refactor rawtransaction_util's SignTransaction to have previous tx parsing be separate (Andrew Chow) Pull request description: Currently the `SignTransaction` function has to handle both the actual signing and parsing of previous transaction data. This PR splits it so that `SignTransaction` only handles the signing itself and adds a `ParsePrevouts` function which handles parsing the prevtx information. This allows for `SignTransaction` to just take any `SigningProvider`. Split from #16341 ACKs for top commit: MarcoFalke: ACK 39034f1 instagibbs: utACK 39034f1 ryanofsky: utACK 39034f1. No change since previously reviewed b49bbb939be92a67ff77c3f7bca5bb94dd141906, #16341 (review) other than rebase with no conflicts. Tree-SHA512: 09f7733e90691766bfb5cf0f20e913dbf270bd3b51abdcad966b24d110e562ed85fd3d0d1d7bbea61f903340060052ec73c4817b09aee0dc1f3916d781a9e40c
…o separate prevtx parsing 39034f1 Refactor rawtransaction_util's SignTransaction to have previous tx parsing be separate (Andrew Chow) Pull request description: Currently the `SignTransaction` function has to handle both the actual signing and parsing of previous transaction data. This PR splits it so that `SignTransaction` only handles the signing itself and adds a `ParsePrevouts` function which handles parsing the prevtx information. This allows for `SignTransaction` to just take any `SigningProvider`. Split from bitcoin#16341 ACKs for top commit: MarcoFalke: ACK 39034f1 instagibbs: utACK bitcoin@39034f1 ryanofsky: utACK 39034f1. No change since previously reviewed b49bbb939be92a67ff77c3f7bca5bb94dd141906, bitcoin#16341 (review) other than rebase with no conflicts. Tree-SHA512: 09f7733e90691766bfb5cf0f20e913dbf270bd3b51abdcad966b24d110e562ed85fd3d0d1d7bbea61f903340060052ec73c4817b09aee0dc1f3916d781a9e40c
…parate prevtx parsing Summary: Refactor rawtransaction_util's SignTransaction to have previous tx parsing be separate (Andrew Chow) Pull request description: Currently the `SignTransaction` function has to handle both the actual signing and parsing of previous transaction data. This PR splits it so that `SignTransaction` only handles the signing itself and adds a `ParsePrevouts` function which handles parsing the prevtx information. This allows for `SignTransaction` to just take any `SigningProvider`. Split from #16341 --- Backport of Core [[bitcoin/bitcoin#16798 | PR16798]] Depends on D7114 Test Plan: ninja check check-functional Reviewers: #bitcoin_abc, deadalnix Reviewed By: #bitcoin_abc, deadalnix Differential Revision: https://reviews.bitcoinabc.org/D7118
Summary: The param coins to SignTransaction is final and can thus not be extended (as suggested by the doc). This was changed in [[bitcoin/bitcoin#16798 | PR16798]] where ParsePrevouts was extracted from SignTransaction. This is a backport of Core [[bitcoin/bitcoin#16900 | PR16900]] Test Plan: `ninja && ninja check` Reviewers: O1 Bitcoin ABC, #bitcoin_abc, deadalnix Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, deadalnix Differential Revision: https://reviews.bitcoinabc.org/D8053
Currently the
SignTransactionfunction has to handle both the actual signing and parsing of previous transaction data. This PR splits it so thatSignTransactiononly handles the signing itself and adds aParsePrevoutsfunction which handles parsing the prevtx information.This allows for
SignTransactionto just take anySigningProvider.Split from #16341