Skip to content

Conversation

@achow101
Copy link
Member

@achow101 achow101 commented Sep 3, 2019

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

@DrahtBot
Copy link
Contributor

DrahtBot commented Sep 3, 2019

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #16546 ([WIP] External signer support - Wallet Box edition by Sjors)
  • #16528 ([WIP] Native Descriptor Wallets (take 2) by achow101)
  • #16341 (Introduce ScriptPubKeyMan interface and use it for key and script management (aka wallet boxes) by achow101)
  • #16251 (Improve signrawtransaction error reporting by ajtowns)

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.

Copy link
Contributor

@ryanofsky ryanofsky left a 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.

@maflcko
Copy link
Member

maflcko commented Sep 5, 2019

ACK 39034f1

Show signature and timestamp

Signature:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

ACK 39034f1ee628dae0bc9da5b1b30b8a424e66d968
-----BEGIN PGP SIGNATURE-----

iQGzBAEBCgAdFiEE+rVPoUahrI9sLGYTzit1aX5ppUgFAlwqrYAACgkQzit1aX5p
pUheggv/VvRRJmPs89YAyGpMgoCCftMBKXJy/XIrP53n34mtGI9sOoOSgvw4S2ZO
gHH3Qo16z7CdZZsj8p8fg0E/DlGLrDWeIOnNhh5gt2rL4aQvoDauki2QjdWDSaxm
IKGkLQJT7MdRre3unrVr65Whe5LiMnUFKcqINHtJ+WWD6PnDfzFpK6E6ucRkUlZQ
GnfY9WLQP3Nh8UfHi7e9azY1+HMkhUGttNILChDCtOXwks52yScqfAa8kZPfYgsj
2/k+rLQ8XRRAP0GNZYuarlpwziUqc3W2a+0XOQjvkhdptwXP0ikSDvb1geg+nyOQ
E/aFmJpBOoDwshj5JmB7QP605WrGAOe6dONXv0IxsdPQa3NkYYLZdVporZYeGG12
FEaXQCgI7CeTRKl3STdics/I3pDPjDZTuAlnqakd06z+swWFnMOR3AtiymPok9QU
yvvrIkvyqfFXMibuKJaPeOrJjREkvtBqXN/f6SVNvEuGPoWnS8oYzo+1wHGuwiMy
HyH6cXfK
=7nCA
-----END PGP SIGNATURE-----

Timestamp of file with hash b4b83c42ea3e2775714fcbbe1b251994d411eab089a19d75efa9a30780ff0eb9 -

@instagibbs
Copy link
Member

utACK 39034f1

fanquake added a commit that referenced this pull request Sep 7, 2019
…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
@fanquake fanquake merged commit 39034f1 into bitcoin:master Sep 7, 2019
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Sep 10, 2019
…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
jasonbcox pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Aug 5, 2020
…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
jasonbcox pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Oct 22, 2020
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
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants