Changeset View
Changeset View
Standalone View
Standalone View
src/script/script_flags.h
Show All 24 Lines | enum { | ||||
// failure (softfork safe, BIP62 rule 1) | // failure (softfork safe, BIP62 rule 1) | ||||
SCRIPT_VERIFY_DERSIG = (1U << 2), | SCRIPT_VERIFY_DERSIG = (1U << 2), | ||||
// Passing a non-strict-DER signature or one with S > order/2 to a checksig | // Passing a non-strict-DER signature or one with S > order/2 to a checksig | ||||
// operation causes script failure | // operation causes script failure | ||||
// (softfork safe, BIP62 rule 5). | // (softfork safe, BIP62 rule 5). | ||||
SCRIPT_VERIFY_LOW_S = (1U << 3), | SCRIPT_VERIFY_LOW_S = (1U << 3), | ||||
// verify dummy stack item consumed by CHECKMULTISIG is of zero-length | |||||
// (softfork safe, BIP62 rule 7). | |||||
SCRIPT_VERIFY_NULLDUMMY = (1U << 4), | |||||
// Using a non-push operator in the scriptSig causes script failure | // Using a non-push operator in the scriptSig causes script failure | ||||
// (softfork safe, BIP62 rule 2). | // (softfork safe, BIP62 rule 2). | ||||
SCRIPT_VERIFY_SIGPUSHONLY = (1U << 5), | SCRIPT_VERIFY_SIGPUSHONLY = (1U << 5), | ||||
// Require minimal encodings for all push operations (OP_0... OP_16, | // Require minimal encodings for all push operations (OP_0... OP_16, | ||||
// OP_1NEGATE where possible, direct pushes up to 75 bytes, OP_PUSHDATA up | // OP_1NEGATE where possible, direct pushes up to 75 bytes, OP_PUSHDATA up | ||||
// to 255 bytes, OP_PUSHDATA2 for anything larger). Evaluating any other | // to 255 bytes, OP_PUSHDATA2 for anything larger). Evaluating any other | ||||
// push causes the script to fail (BIP62 rule 3). In addition, whenever a | // push causes the script to fail (BIP62 rule 3). In addition, whenever a | ||||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |