TransWikia.com

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!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP