HomePhabricator

Add pubkeys and whether input was witness to SignatureData

Description

Add pubkeys and whether input was witness to SignatureData

Summary:
Stores pubkeys in SignatureData and retrieves them when using GetPubKey().

Stores whether the signatures in a SignatureData are for a witness input.

This is a partial backport of Core PR13557 : https://github.com/bitcoin/bitcoin/pull/13557/commits/12bcc64f277f642ece03c25653e726f2276f0d51

Depends on D4258

Test Plan: Unfortunately, The PR dump all the tests at once at the end, so there are n test for the new code.

Reviewers: #bitcoin_abc, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Differential Revision: https://reviews.bitcoinabc.org/D4285

Details

Provenance
Andrew Chow <achow101-github@achow101.com>Authored on Jun 27 2018, 23:56
deadalnixCommitted on Oct 30 2019, 17:28
deadalnixPushed on Oct 30 2019, 17:29
Reviewer
Restricted Project
Differential Revision
D4285: Add pubkeys and whether input was witness to SignatureData
Parents
rABC961326309588: Implement PSBT Structures and un/serialization methods per BIP 174
Branches
Unknown
Tags
Unknown