OP_LSHIFT & OP_RSHIFT purpose & functionality

Bitcoin Asked by Bhala T R on October 24, 2021

What is the purpose & functionalities of the LSHIFT & RSHIFT Script OP codes ?

One Answer

For all intents and purposes, Bitcoin has no such opcodes.

Very early versions of Bitcoin's reference implementation did, until version 0.3.10 (August 2010) when they were disabled together with a number of other opcodes. New opcodes with identical functionality could be re-introduced now with a softfork, but the fact that similar opcodes existed historically wouldn't make that any easier (or harder) - they'd just be new opcodes.

As for what they did: they implemented an operation similar to the >>= and <<= C/C++ style operators, multiplying and dividing by a specified power of two.

Answered by Pieter Wuille on October 24, 2021

Add your own answers!

Related Questions

Name of attack where you pay a high fee to block others

2  Asked on October 24, 2021 by m-johnson


Configure Bitcoin full node in my local LAN

1  Asked on October 24, 2021 by miltonc


missing transaction not received

2  Asked on October 24, 2021 by n-w


I received an email that says someone sent me bitcoin

2  Asked on October 24, 2021 by user107566


OP_LSHIFT & OP_RSHIFT purpose & functionality

1  Asked on October 24, 2021 by bhala-t-r


What is proof-of-work?

3  Asked on October 24, 2021 by dr-haribo


How do I get hash to verify transaction?

1  Asked on October 24, 2021 by kriley


Blockchain API whitelist all IP addresses

1  Asked on October 24, 2021 by samuel-ralak


Error on Centos Minergate Installation

0  Asked on October 24, 2021 by centosminer


bitcoin-cli “Could not connect to the server”

1  Asked on October 24, 2021 by user97315


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir