Opcodes · bitwise · enabled

OP_EQUAL (0x87)

Pushes 1 if the two top items are byte-for-byte equal, otherwise 0.

Verified
Stack in → out
a b → a==b
Since
Original Bitcoin script
Cost
Base instruction cost 100 plus the byte length of the pushed result (2025 VM limits).
Bitcoin status
Same in Bitcoin (BTC)

Example

OP_HASH160 <script_hash> OP_EQUAL

Step through it opcode by opcode in Bitauth IDE, the in-browser BCH VM debugger.

Sources

  1. Libauth BCH_2023_05 opcodes (bch-2023-opcodes.ts)