OP_XOR

(134 | 0x86)

Input

2 items

|

Output

1 items

OP_XOR performs a bitwise XOR 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 XOR 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 XOR operation between the top two items on the stack.

Pop the two numbers from the stack

Perform a bitwise XOR operation on the two numbers

Push the result onto the stack