OP_OR

(133 | 0x85)

Input

2 items

|

Output

1 items

OP_OR performs a bitwise OR operation between the top two items on the stack. It takes the top two items from the stack, interprets them as integers, performs a bitwise OR operation on their binary representations, and pushes the result onto the stack. This operation is commonly used in Bitcoin scripts for various cryptographic and arithmetic operations involving bitwise manipulation.

OP_Code Walkthrough

Performs a bitwise OR operation between the top two items on the stack.

Pop the two numbers from the stack

Perform a bitwise OR operation on the two numbers

Push the result onto the stack