OP_LSHIFT

(152 | 0x98)

Input

2 items

|

Output

1 items

OP_LSHIFT performs a bitwise left shift operation on the top two items on the stack. It takes the top two items from the stack, interprets them as integers, performs a bitwise left shift operation, and pushes the result onto the stack. This operation shifts the binary representation of the first item to the left by the number of bits specified by the second item. OP_LSHIFT is commonly used in Bitcoin scripts for various bitwise manipulation operations.

OP_Code Walkthrough

Performs a bitwise left shift operation on the top two items on the stack.

Pop the two numbers from the stack

Perform a bitwise left shift operation on the two numbers

Push the result onto the stack