A signature creator for transactions. */
| 68 | |
| 69 | /** A signature creator for transactions. */ |
| 70 | class MutableTransactionSignatureCreator : public BaseSignatureCreator { |
| 71 | const CMutableTransaction* txTo; |
| 72 | unsigned int nIn; |
| 73 | bool no_forkid; |
| 74 | int nHashType; |
| 75 | CAmount amount; |
| 76 | const MutableTransactionSignatureChecker checker; |
| 77 | |
| 78 | public: |
| 79 | MutableTransactionSignatureCreator(const CMutableTransaction* txToIn, unsigned int nInIn, const CAmount& amountIn, bool no_forkid, int nHashTypeIn = SIGHASH_ALL | SIGHASH_FORKID); |
| 80 | const BaseSignatureChecker& Checker() const override { return checker; } |
| 81 | bool CreateSig(const SigningProvider& provider, std::vector<unsigned char>& vchSig, const CKeyID& keyid, const CScript& scriptCode, SigVersion sigversion) const override; |
| 82 | }; |
| 83 | |
| 84 | /** A signature creator that just produces 71-byte empty signatures. */ |
| 85 | extern const BaseSignatureCreator& DUMMY_SIGNATURE_CREATOR; |
no outgoing calls