1OK = 0 2UNKNOWN_ERROR = 1 3EVAL_FALSE = 2 4OP_RETURN = 3 5 6# Max sizes 7SCRIPT_SIZE = 4 8PUSH_SIZE = 5 9OP_COUNT = 6 10STACK_SIZE = 7 11SIG_COUNT = 8 12PUBKEY_COUNT = 9 13 14# Failed verify operations 15VERIFY = 10 16EQUALVERIFY = 11 17CHECKMULTISIGVERIFY = 12 18CHECKSIGVERIFY = 13 19NUMEQUALVERIFY = 14 20 21# Logical/Format/Canonical errors 22BAD_OPCODE = 15 23DISABLED_OPCODE = 16 24INVALID_STACK_OPERATION = 17 25INVALID_ALTSTACK_OPERATION = 18 26UNBALANCED_CONDITIONAL = 19 27 28# CHECKLOCKTIMEVERIFY and CHECKSEQUENCEVERIFY 29NEGATIVE_LOCKTIME = 20 30UNSATISFIED_LOCKTIME = 21 31 32# Malleability 33SIG_HASHTYPE = 22 34SIG_DER = 23 35MINIMALDATA = 24 36SIG_PUSHONLY = 25 37SIG_HIGH_S = 26 38SIG_NULLDUMMY = 27 39PUBKEYTYPE = 28 40CLEANSTACK = 29 41MINIMALIF = 30 42NULLFAIL = 31 43 44# softfork safeness 45DISCOURAGE_UPGRADABLE_NOPS = 32 46DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM = 33 47 48# segregated witness 49WITNESS_PROGRAM_WRONG_LENGTH = 34 50WITNESS_PROGRAM_WITNESS_EMPTY = 35 51WITNESS_PROGRAM_MISMATCH = 36 52WITNESS_MALLEATED = 37 53WITNESS_MALLEATED_P2SH = 38 54WITNESS_UNEXPECTED = 39 55WITNESS_PUBKEYTYPE = 40 56 57ERROR_COUNT = 41 58