6 #ifndef FABCOIN_SCRIPT_SIGN_H 7 #define FABCOIN_SCRIPT_SIGN_H 86 #endif // FABCOIN_SCRIPT_SIGN_H const BaseSignatureChecker & Checker() const override
bool VerifySignature(const Coin &coin, uint256 txFromHash, const CTransaction &txTo, unsigned int nIn, unsigned int flags)
const CKeyStore & KeyStore() const
Virtual base class for signature creators.
A signature creator for transactions.
SignatureData CombineSignatures(const CScript &scriptPubKey, const BaseSignatureChecker &checker, const SignatureData &scriptSig1, const SignatureData &scriptSig2)
Combine two script signatures using a generic signature checker, intelligently, possibly with OP_0 pl...
int64_t CAmount
Amount in lius (Can be negative)
SignatureData(const CScript &script)
const CKeyStore * keystore
virtual bool CreateSig(std::vector< unsigned char > &vchSig, const CKeyID &keyid, const CScript &scriptCode, SigVersion sigversion) const =0
Create a singular (non-script) signature.
BaseSignatureCreator(const CKeyStore *keystoreIn)
bool SignSignature(const CKeyStore &keystore, const CScript &fromPubKey, CMutableTransaction &txTo, unsigned int nIn, const CAmount &amount, int nHashType)
Produce a script signature for a transaction.
CScriptWitness scriptWitness
const TransactionSignatureChecker checker
virtual ~BaseSignatureCreator()
Serialized script, used inside transaction inputs and outputs.
A virtual base class for key stores.
A reference to a CKey: the Hash160 of its serialized public key.
A mutable version of CTransaction.
DummySignatureCreator(const CKeyStore *keystoreIn)
The basic transaction that is broadcasted on the network and contained in blocks. ...
const CTransaction * txTo
MutableTransactionSignatureCreator(const CKeyStore *keystoreIn, const CMutableTransaction *txToIn, unsigned int nInIn, const CAmount &amountIn, int nHashTypeIn)
bool ProduceSignature(const BaseSignatureCreator &creator, const CScript &scriptPubKey, SignatureData &sigdata)
Produce a script signature using a generic signature creator.
void UpdateTransaction(CMutableTransaction &tx, unsigned int nIn, const SignatureData &data)
SignatureData DataFromTransaction(const CMutableTransaction &tx, unsigned int nIn)
Extract signature data from a transaction, and insert it.
A signature creator that just produces 72-byte empty signatures.
virtual const BaseSignatureChecker & Checker() const =0