Changeset View
Changeset View
Standalone View
Standalone View
src/script/sign.h
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | MutableTransactionSignatureCreator( | ||||
const CMutableTransaction *txToIn, unsigned int nInIn, | const CMutableTransaction *txToIn, unsigned int nInIn, | ||||
const Amount &amountIn, SigHashType sigHashTypeIn = SigHashType()); | const Amount &amountIn, SigHashType sigHashTypeIn = SigHashType()); | ||||
const BaseSignatureChecker &Checker() const override { return checker; } | const BaseSignatureChecker &Checker() const override { return checker; } | ||||
bool CreateSig(const SigningProvider &provider, | bool CreateSig(const SigningProvider &provider, | ||||
std::vector<uint8_t> &vchSig, const CKeyID &keyid, | std::vector<uint8_t> &vchSig, const CKeyID &keyid, | ||||
const CScript &scriptCode) const override; | const CScript &scriptCode) const override; | ||||
}; | }; | ||||
/** A signature creator that just produces 72-byte empty signatures. */ | /** A signature creator that just produces 71-byte empty signatures. */ | ||||
extern const BaseSignatureCreator &DUMMY_SIGNATURE_CREATOR; | extern const BaseSignatureCreator &DUMMY_SIGNATURE_CREATOR; | ||||
/** A signature creator that just produces 72-byte empty signatures. */ | |||||
extern const BaseSignatureCreator &DUMMY_MAXIMUM_SIGNATURE_CREATOR; | |||||
typedef std::pair<CPubKey, std::vector<uint8_t>> SigPair; | typedef std::pair<CPubKey, std::vector<uint8_t>> SigPair; | ||||
// This struct contains information from a transaction input and also contains | // This struct contains information from a transaction input and also contains | ||||
// signatures for that input. The information contained here can be used to | // signatures for that input. The information contained here can be used to | ||||
// create a signature and is also filled by ProduceSignature in order to | // create a signature and is also filled by ProduceSignature in order to | ||||
// construct final scriptSigs. | // construct final scriptSigs. | ||||
struct SignatureData { | struct SignatureData { | ||||
▲ Show 20 Lines • Show All 578 Lines • Show Last 20 Lines |