A signature creator for transactions. */
| 35 | |
| 36 | /** A signature creator for transactions. */ |
| 37 | class MutableTransactionSignatureCreator : public BaseSignatureCreator { |
| 38 | const CMutableTransaction* txTo; |
| 39 | unsigned int nIn; |
| 40 | int nHashType; |
| 41 | CConfidentialValue amount; |
| 42 | const MutableTransactionSignatureChecker checker; |
| 43 | const PrecomputedTransactionData* m_txdata; |
| 44 | |
| 45 | public: |
| 46 | MutableTransactionSignatureCreator(const CMutableTransaction* tx, unsigned int input_idx, const CConfidentialValue& amount, int hash_type); |
| 47 | MutableTransactionSignatureCreator(const CMutableTransaction* tx, unsigned int input_idx, const CConfidentialValue& amount, const PrecomputedTransactionData* txdata, int hash_type); |
| 48 | const BaseSignatureChecker& Checker() const override { return checker; } |
| 49 | bool CreateSig(const SigningProvider& provider, std::vector<unsigned char>& vchSig, const CKeyID& keyid, const CScript& scriptCode, SigVersion sigversion, unsigned int flags) const override; |
| 50 | bool CreateSchnorrSig(const SigningProvider& provider, std::vector<unsigned char>& sig, const XOnlyPubKey& pubkey, const uint256* leaf_hash, const uint256* merkle_root, SigVersion sigversion) const override; |
| 51 | }; |
| 52 | |
| 53 | /** A signature creator that just produces 71-byte empty signatures. */ |
| 54 | extern const BaseSignatureCreator& DUMMY_SIGNATURE_CREATOR; |
no outgoing calls