Latest news about Bitcoin and all cryptocurrencies. Your daily crypto news habit.

Smart contracts â self-executing pieces of code â are most commonly associated with the ethereum network. Long before Vitalik Buterin tried to sell a fake quantum mining computer and dreamed up his âglobal supercomputerâ, however, Satoshi Nakamoto saw the potential for smart contracts, even though the term had yet to be popularized. The bitcoin blockchain is now a step closer to having its own self-executable agreements thanks to the arrival of Ivy.
Also read:Â SEC Suspends Trading in Publicly Traded `The Crypto CompanyÂŽ after 2500% Rise
Bitcoin is Getting Smarter
Ivy is an open source compiler developed by cryptographic ledger specialists Chain.com. It can be used to write bitcoin smart contracts into Segwit-compatible addresses. The range of functions that Bitcoin Script supports is more limited than those available on the âTuring-completeâ ethereum network. This reduced functionality is one of bitcoinâs strengths however: maintaining network security is deemed more important than introducing untested code that has the potential to break things.
Parity for ethereum: a masterclass in how not to do smart contracts
While the ethereum blockchain has remained intact, major bugs in its smart contracts have led to hundreds of millions of dollars being stolen or permanently locked away. The range of functions that Bitcoin Script can support is primarily limited to hash commitments, signature checks, and timelocks. Bitcoinâs script functionality has largely been overlooked in the blockchainâs eight years of existence, but Ivy looks set to change that.
Code Compiling Made Easy
In a blogpost announcing the release of Ivy, Chain explained:
Bitcoin allows you to write [smart] contracts using a low-level programming language, Bitcoin Script. Every Bitcoin address corresponds to a Bitcoin Script program. When you send bitcoins to an address, you are essentially locking them in a safety deposit box on the blockchain. These boxes are typically referred to as âunspent transaction outputs,â but weâll refer to them as âcontracts.â Each contract has an address, which corresponds to a program that must be satisfied in order to unlock and spend the bitcoins.
As a low-level assembly language, Bitcoin Script isnât the most user-friendly codebase to work with, hence Ivy. Chain have now released Ivy Playground, a safe space for developers to play around with bitcoin smart contracts on a testnet. Because Ivy is at an early stage in its development, it still requires rigorous testing before it can be deemed safe for a trial in the wild.
To date, Bitcoin Scriptâs use cases have primarily been to create multisig wallets, although itâs also a component of scaling solutions such as the Lightning Network. Ivy provides a means of creating contract templates. Thereafter, a developer need only enter certain parameters before deploying the contract on a Segwit-compatible address.
Ivy was developed by Chain.com
Curiously, Satoshi made no mention of Bitcoin Script in his famous white paper, though it still featured in the first version of bitcoin ever released, 0.1. Although the digital currencyâs scripting functionality is believed to have been added as more an afterthought than a key component, it is further evidence of Satoshiâs farsightedness. For all his genius, the first release of bitcoin contained a bug that would have allowed anyone to steal coins simply by using the OP_TRUE OP_RETURN scriptSig. This was hastily fixed.
Early Bitcoin Core developer Mike Hearn once acknowledged:
The scripting system always struck me as a rather late addition to the design. Satoshi admitted as much when he said that he added it after encountering an explosion of special cases as he designed various types of contractsâŠ.we never found a use case for 99% of the opcodes despite [Satoshi] having successfully designed (redesigned?) all the contract types he ever mentioned.
We will likely never know what Satoshiâs intentions were for Bitcoin Script. Seven years to the month since Satoshiâs last contact with the public, however, his assembly language is poised to be put to good use with the introduction of Ivy-enabled bitcoin smart contracts.
Do you think smart contracts will benefit bitcoin, or is this a feature best left to other blockchains? Let us know in the comments section below.
Images courtesy of Shutterstock, and Chain.com.
Keep track of the bitcoin exchange rate in real-time.
The post New Chain Platform Ivy Brings Smart Contracts to Bitcoin appeared first on Bitcoin News.
Disclaimer
The views and opinions expressed in this article are solely those of the authors and do not reflect the views of Bitcoin Insider. Every investment and trading move involves risk - this is especially true for cryptocurrencies given their volatility. We strongly advise our readers to conduct their own research when making a decision.