Changeset View
Changeset View
Standalone View
Standalone View
src/script/interpreter.h
Show First 20 Lines • Show All 101 Lines • ▼ Show 20 Lines | enum { | ||||
// Public keys in scripts must be compressed | // Public keys in scripts must be compressed | ||||
// | // | ||||
SCRIPT_VERIFY_COMPRESSED_PUBKEYTYPE = (1U << 15), | SCRIPT_VERIFY_COMPRESSED_PUBKEYTYPE = (1U << 15), | ||||
// Do we accept signature using SIGHASH_FORKID | // Do we accept signature using SIGHASH_FORKID | ||||
// | // | ||||
SCRIPT_ENABLE_SIGHASH_FORKID = (1U << 16), | SCRIPT_ENABLE_SIGHASH_FORKID = (1U << 16), | ||||
// Do we accept activate replay protection using a different fork id. | |||||
// | |||||
SCRIPT_ENABLE_REPLAY_PROTECTION = (1U << 17), | |||||
}; | }; | ||||
bool CheckSignatureEncoding(const std::vector<uint8_t> &vchSig, uint32_t flags, | bool CheckSignatureEncoding(const std::vector<uint8_t> &vchSig, uint32_t flags, | ||||
ScriptError *serror); | ScriptError *serror); | ||||
uint256 SignatureHash(const CScript &scriptCode, const CTransaction &txTo, | uint256 SignatureHash(const CScript &scriptCode, const CTransaction &txTo, | ||||
unsigned int nIn, SigHashType sigHashType, | unsigned int nIn, SigHashType sigHashType, | ||||
const Amount amount, | const Amount amount, | ||||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |