2019-11-18 20:53:33 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2022-12-05 15:04:23 +00:00
|
|
|
# Copyright (c) 2019-2022 tecnovert
|
2019-11-18 20:53:33 +00:00
|
|
|
# Distributed under the MIT software license, see the accompanying
|
2020-10-30 08:55:45 +00:00
|
|
|
# file LICENSE or http://www.opensource.org/licenses/mit-license.php.
|
2019-11-18 20:53:33 +00:00
|
|
|
|
2019-11-28 21:51:47 +00:00
|
|
|
from enum import IntEnum
|
|
|
|
|
2019-11-18 20:53:33 +00:00
|
|
|
|
|
|
|
class OpCodes(IntEnum):
|
|
|
|
OP_0 = 0x00,
|
|
|
|
OP_PUSHDATA1 = 0x4c,
|
|
|
|
OP_1 = 0x51,
|
2020-12-12 12:45:30 +00:00
|
|
|
OP_16 = 0x60,
|
2019-11-18 20:53:33 +00:00
|
|
|
OP_IF = 0x63,
|
|
|
|
OP_ELSE = 0x67,
|
|
|
|
OP_ENDIF = 0x68,
|
2022-12-05 15:04:23 +00:00
|
|
|
OP_RETURN = 0x6a,
|
2019-11-18 20:53:33 +00:00
|
|
|
OP_DROP = 0x75,
|
|
|
|
OP_DUP = 0x76,
|
|
|
|
OP_SIZE = 0x82,
|
|
|
|
OP_EQUAL = 0x87,
|
|
|
|
OP_EQUALVERIFY = 0x88,
|
|
|
|
OP_SHA256 = 0xa8,
|
|
|
|
OP_HASH160 = 0xa9,
|
|
|
|
OP_CHECKSIG = 0xac,
|
|
|
|
OP_CHECKLOCKTIMEVERIFY = 0xb1,
|
|
|
|
OP_CHECKSEQUENCEVERIFY = 0xb2,
|