diff options
| author | Andrew Chow <[email protected]> | 2018-06-27 16:56:30 -0700 |
|---|---|---|
| committer | Andrew Chow <[email protected]> | 2018-07-13 14:27:31 -0700 |
| commit | 12bcc64f277f642ece03c25653e726f2276f0d51 (patch) | |
| tree | 94a1f3ba80ee473286ab601ffe21cd2f4c0acf30 /src/script/sign.h | |
| parent | Implement PSBT Structures and un/serialization methods per BIP 174 (diff) | |
| download | discoin-12bcc64f277f642ece03c25653e726f2276f0d51.tar.xz discoin-12bcc64f277f642ece03c25653e726f2276f0d51.zip | |
Add pubkeys and whether input was witness to SignatureData
Stores pubkeys in SignatureData and retrieves them when using GetPubKey().
Stores whether the signatures in a SignatureData are for a witness input.
Diffstat (limited to 'src/script/sign.h')
| -rw-r--r-- | src/script/sign.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/sign.h b/src/script/sign.h index d1cf91861..5384f9753 100644 --- a/src/script/sign.h +++ b/src/script/sign.h @@ -66,11 +66,13 @@ typedef std::pair<CPubKey, std::vector<unsigned char>> SigPair; // in order to construct final scriptSigs and scriptWitnesses. struct SignatureData { bool complete = false; ///< Stores whether the scriptSig and scriptWitness are complete + bool witness = false; ///< Stores whether the input this SigData corresponds to is a witness input CScript scriptSig; ///< The scriptSig of an input. Contains complete signatures or the traditional partial signatures format CScript redeem_script; ///< The redeemScript (if any) for the input CScript witness_script; ///< The witnessScript (if any) for the input. witnessScripts are used in P2WSH outputs. CScriptWitness scriptWitness; ///< The scriptWitness of an input. Contains complete signatures or the traditional partial signatures format. scriptWitness is part of a transaction input per BIP 144. std::map<CKeyID, SigPair> signatures; ///< BIP 174 style partial signatures for the input. May contain all signatures necessary for producing a final scriptSig or scriptWitness. + std::map<CKeyID, CPubKey> misc_pubkeys; SignatureData() {} explicit SignatureData(const CScript& script) : scriptSig(script) {} |