Opcodes · arithmetic · enabled

OP_MUL (0x95)

Multiplies the top two numbers. Disabled in Bitcoin since 2010 and re-enabled on BCH in May 2022 with 64-bit integers; BigInt (2025) removed the 64-bit cap.

Verified
Stack in → out
a b → a×b
Cost
Base instruction cost 100, plus twice the result length, plus the product of the two input lengths to cover O(n²) work (2025 VM limits).
Bitcoin status
Disabled in Bitcoin (BTC)Disabled since 2010; an OP_SUCCESS code in Tapscript.

Example

OP_3 OP_4 OP_MUL OP_12 OP_EQUAL

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

Sources

  1. CHIP-2021-03 Bigger Script Integers
  2. CHIP-2021-05 VM Limits: Targeted Virtual Machine Limits
  3. CHIP-2024-07 BigInt: High-Precision Arithmetic