Bitcoin smart contracts are a tricky beast to tame, but a new language is making them easier to write, democratizing them in a sense.
Smart contracts can (among other things) allow users to set extra rules on their bitcoin, requiring these rules be met before the funds can be unlocked. Minsc, created by Bitcoin developer Nadav Ivgi, is a new programming language that makes it easier for developers to create these kinds of contracts so they can build them into bitcoin wallets and other apps more smoothly.
One of the goals of Minsc is to make smart contracts more accessible to more people, Ivgi told CoinDesk. That means both developers and users alike are able to take advantage of tools built by developers.
Related: First Mover: As Wall Street Goes Topsy-Turvy, Crypto Traders Are Bullish as Ever
Smart contracts were first described by Nick Szabo in the 1990s. He theorized a way of automating legally binding contracts made between people.
Typical examples of smart contracts on Bitcoin include not allowing 0.1 BTC to be spent until 2021, or requiring more than one person to sign off on a transaction before the money can actually move. Smart contracts also power second layers on the Bitcoin protocol, such as the Lightning Network, which could help Bitcoin expand to reach more users.
Thus far, Bitcoin Script is the language that makes these contracts possible.
The problem is its tricky to work with Bitcoin Script. It is unlike other, more popular programming languages developers are used to, making it harder to wrap their heads around and compose in. This lack of understanding also makes it easier to make a mistake, potentially putting Bitcoin at risk.
Related: CME Rises in Bitcoin Futures Rankings as Institutional Interest Grows
The unwieldiness of Bitcoin Script was one of the factors that led Vitalik Buterin to design the Ethereum platform in the first place. Solidity, Ethereums first smart-contract language, was designed to be much easier for developers to read and thus use. And it has paid off: Ethereum has grown to become the go-to platform for smart contract developers.
Read more: How Do Ethereum Smart Contracts Work?
Miniscript, released in 2019 by Pieter Wuille, Andrew Poelstra and Sanket Kanjalkar at Blockstream Research, chips away at this issue for bitcoin.
Read more: Pieter Wuille Unveils Miniscript, A New Smart Contract Language for Bitcoin
One reason that were not anywhere close to using Scripts full potential is that actually constructing scripts for nontrivial tasks is cumbersome. Its hard to verify their correctness and security, and even harder to find the most economical way to write things, Wuille and Poelstra wrote in a blog post introducing Miniscript in September of last year.
Miniscript offers a language thats easier to understand than Script, with built-in security guarantees.
Additionally, if there are two different ways of writing the same contract in Script, Miniscript is able to assess which one is more economical.
The computer eventually compiles (or converts) Miniscript to Bitcoin Script, which is what the code ultimately needs to be written in to successfully lock up real bitcoin with these extra restrictions.
Minsc is the third tier of the cake. It builds on top of Miniscript, taking advantage of its security properties but creating a language that is even easier for developers to read and think about than Miniscript.
Minscs focus is on usability and making it easier to express, comprehend and reason about scripts, using a simple and familiar syntax. It adds additional convenience features and syntactic sugar,' Ivgi told CoinDesk.
Syntactic sugar is a programming term for adding into a language another easier, shortcut way of executing a task that is usually harder to write.
So Minsc doesnt add anything new to Script, it just makes it easier to use.
It doesnt let you do anything that Miniscript doesnt already, similarly to Miniscript itself in relation to Bitcoin Script, Ivgi said.
Minsc could make it easier for developers to add support for various smart contracts. The main intended target audience is developers looking to build apps that utilize Bitcoin Script in interesting, advanced ways, Ivgi added.
Story continues
Read more: RIF Launches Layer 3 Network to Scale Bitcoin-Based Smart Contracts, Tokens
If more developers can eventually add support for these smart contracts, more users will (perhaps even unknowingly) be able to use these more-complex contracts as well.
Initially, however, I anticipate the usage to be primarily experimental and educational. Minsc can be a great tool for people looking to gain a better understanding of Bitcoin Script, as well as for educators teaching the technical aspects of Bitcoin, Ivgi said.
Ivgi is still in the process of adding other features to the language. Bitcoins smart contracting abilities are likely to expand even further, such as with Taproot, a likely upgrade on Bitcoins horizon. Minsc will be there to make these contracts easier to create.
Originally posted here:
Writing Bitcoin Smart Contracts Is About to Get Easier With New Coding Language - Yahoo Finance
- Bitcoin r/Bitcoin - reddit [Last Updated On: September 20th, 2017] [Originally Added On: September 20th, 2017]
- Bitcoin Exchange Rate Bitcoin Live Converter Preev [Last Updated On: September 29th, 2017] [Originally Added On: September 29th, 2017]
- The Rise and Fall of Bitcoin | WIRED [Last Updated On: November 17th, 2017] [Originally Added On: November 17th, 2017]
- Bitcoin Crashes and Then Surges in Wild Weekend Action ... [Last Updated On: November 17th, 2017] [Originally Added On: November 17th, 2017]
- WeUseCoins - Official Site [Last Updated On: November 21st, 2017] [Originally Added On: November 21st, 2017]
- Bitcoin Price Index - Real-time Bitcoin Price Charts [Last Updated On: November 21st, 2017] [Originally Added On: November 21st, 2017]
- Warning Signs About Another Giant Bitcoin Exchange [Last Updated On: November 23rd, 2017] [Originally Added On: November 23rd, 2017]
- Everything you need to know about Bitcoin mining [Last Updated On: November 23rd, 2017] [Originally Added On: November 23rd, 2017]
- Bitcoin hits $13,000: The rally is back, big time - Dec. 6 ... [Last Updated On: December 7th, 2017] [Originally Added On: December 7th, 2017]
- SEC suspends trading of red-hot bitcoin stock - Dec. 19, 2017 [Last Updated On: December 20th, 2017] [Originally Added On: December 20th, 2017]
- The Bitcoin Boom: In Code We Trust - The New York Times [Last Updated On: December 22nd, 2017] [Originally Added On: December 22nd, 2017]
- Bitcoin Opacity Medium [Last Updated On: January 24th, 2018] [Originally Added On: January 24th, 2018]
- Bitcoin Forum - Index [Last Updated On: February 1st, 2018] [Originally Added On: February 1st, 2018]
- Mining - Bitcoin Wiki [Last Updated On: February 11th, 2018] [Originally Added On: February 11th, 2018]
- Bitcoin Cash - Wikipedia [Last Updated On: February 17th, 2018] [Originally Added On: February 17th, 2018]
- Bitcoin Energy Consumption Index - Digiconomist [Last Updated On: February 27th, 2018] [Originally Added On: February 27th, 2018]
- Paypal Files Patent for Expedited ... - news.bitcoin.com [Last Updated On: March 12th, 2018] [Originally Added On: March 12th, 2018]
- Bitcoin - MarketWatch.com Topics [Last Updated On: March 12th, 2018] [Originally Added On: March 12th, 2018]
- What is Bitcoin? - Definition from WhatIs.com [Last Updated On: March 13th, 2018] [Originally Added On: March 13th, 2018]
- Bitcoin and Blockchain - Bloomberg [Last Updated On: March 13th, 2018] [Originally Added On: March 13th, 2018]
- Bitcoin (BTC) price: News & Live Chart - Trading Analysis ... [Last Updated On: March 27th, 2018] [Originally Added On: March 27th, 2018]
- Will a 1099-B form work best for reporting bitcoin ... [Last Updated On: April 4th, 2018] [Originally Added On: April 4th, 2018]
- Must I pay tax this year if I transfer bitcoin from ... [Last Updated On: April 4th, 2018] [Originally Added On: April 4th, 2018]
- Standard Exchanges Bitcoin.com [Last Updated On: April 9th, 2018] [Originally Added On: April 9th, 2018]
- Bitcoin - Bitcoin Price Live, BTC Value, Mining, BTC to USD ... [Last Updated On: July 11th, 2018] [Originally Added On: July 11th, 2018]
- Things you need to know Bitcoin.com [Last Updated On: July 27th, 2018] [Originally Added On: July 27th, 2018]
- Bitcoin Dips Below $7,000, Hitting Lowest In 2 Weeks [Last Updated On: August 7th, 2018] [Originally Added On: August 7th, 2018]
- One Chart Explains Why You Should Own Bitcoin And Other ... [Last Updated On: August 12th, 2018] [Originally Added On: August 12th, 2018]
- XBT-Cboe Bitcoin Futures [Last Updated On: September 29th, 2018] [Originally Added On: September 29th, 2018]
- CoinDesk - Leader in blockchain news. [Last Updated On: October 25th, 2018] [Originally Added On: October 25th, 2018]
- Bitcoincharts | Charts [Last Updated On: November 12th, 2018] [Originally Added On: November 12th, 2018]
- Bitcoin (BTC) Price, Chart, Info | CoinGecko [Last Updated On: November 28th, 2018] [Originally Added On: November 28th, 2018]
- Bitcoin Technical Analysis - FXStreet [Last Updated On: November 28th, 2018] [Originally Added On: November 28th, 2018]
- Bitcoin Crypto-Economics Index Real-time Price Charts ... [Last Updated On: November 29th, 2018] [Originally Added On: November 29th, 2018]
- The Beginner's Guide To Bitcoin - Everything You Need To Know [Last Updated On: December 2nd, 2018] [Originally Added On: December 2nd, 2018]
- Bitcoin | Definition, Mining, & Facts | Britannica.com [Last Updated On: December 2nd, 2018] [Originally Added On: December 2nd, 2018]
- What Is Bitcoin? The Ultimate Beginners Guide To Bitcoin [Last Updated On: December 2nd, 2018] [Originally Added On: December 2nd, 2018]
- XBT - Bitcoin rates, news, and tools - xe.com [Last Updated On: December 2nd, 2018] [Originally Added On: December 2nd, 2018]
- Pay with Bitcoin Online | Use Bitcoin to Pay for Gold and ... [Last Updated On: December 2nd, 2018] [Originally Added On: December 2nd, 2018]
- Bitcoin (BTC) for beginners - Coin Rivet guide to BTC [Last Updated On: December 2nd, 2018] [Originally Added On: December 2nd, 2018]
- Bitcoin extends falls as selloff in crypto currencies ... [Last Updated On: December 2nd, 2018] [Originally Added On: December 2nd, 2018]
- Bitcoin - Investopedia - Sharper Insight. Smarter Investing. [Last Updated On: December 9th, 2018] [Originally Added On: December 9th, 2018]
- Bitcoin | Bitcoin Price | Bitcoin News | BTC | Info ... [Last Updated On: December 21st, 2018] [Originally Added On: December 21st, 2018]
- Bitcoin Price Today - Live Bitcoin Value - Charts & Market ... [Last Updated On: January 6th, 2019] [Originally Added On: January 6th, 2019]
- News - Bitcoin News - Page 952 [Last Updated On: January 7th, 2019] [Originally Added On: January 7th, 2019]
- Bitcoin price | index, chart and news | WorldCoinIndex [Last Updated On: April 25th, 2019] [Originally Added On: April 25th, 2019]
- Something Very Strange Is Going On With Bitcoin And BTC ... [Last Updated On: September 6th, 2019] [Originally Added On: September 6th, 2019]
- Will Bitcoin hit $12000 by the end of the year? - Khaleej Times [Last Updated On: October 28th, 2019] [Originally Added On: October 28th, 2019]
- Bitcoins $1000 Breakaway CME Gap Demands Attention From Analysts - BeInCrypto [Last Updated On: October 28th, 2019] [Originally Added On: October 28th, 2019]
- Bitcoin Trending On Google Next To Call of Duty, Kanye West, and Rudy Giuliani - newsBTC [Last Updated On: October 28th, 2019] [Originally Added On: October 28th, 2019]
- A Bitcoin Price In The Millions? But We Have To Wait A Decade - Bitcoinist [Last Updated On: October 28th, 2019] [Originally Added On: October 28th, 2019]
- No Bitcoin Price Breakout for Another Year; Heres Why - newsBTC [Last Updated On: October 28th, 2019] [Originally Added On: October 28th, 2019]
- Bitcoin Price Back Over $10K Following 36% Gains on the Day - Cointelegraph [Last Updated On: October 28th, 2019] [Originally Added On: October 28th, 2019]
- When Will Bitcoin Sidechains Send Ethereum, Ripple, And Other Crypto Prices To Zero? - Forbes [Last Updated On: October 28th, 2019] [Originally Added On: October 28th, 2019]
- Why the Price of Bitcoin Has Jumped 25% in Four Days - Barron's [Last Updated On: October 28th, 2019] [Originally Added On: October 28th, 2019]
- Bitcoin Price Surges as Bitfinex Gets Chance to Recover $850M from Crypto Capital, VanEck Expert Believes - U.Today [Last Updated On: October 28th, 2019] [Originally Added On: October 28th, 2019]
- Bitcoin (BTC) Price Steadies Uptrend But Another Correction Likely - newsBTC [Last Updated On: October 28th, 2019] [Originally Added On: October 28th, 2019]
- Bitcoin and child pornography a connection we cannot tolerate - The Dallas Morning News [Last Updated On: October 28th, 2019] [Originally Added On: October 28th, 2019]
- Congressman Warns Bitcoin Is A Threat To The U.S. Dollar - Forbes [Last Updated On: October 28th, 2019] [Originally Added On: October 28th, 2019]
- The Bitcoin Halvening Is Coming - Forbes [Last Updated On: October 28th, 2019] [Originally Added On: October 28th, 2019]
- China Roundup: Xis power on bitcoin, the rise of Alibabas new rival - TechCrunch [Last Updated On: October 28th, 2019] [Originally Added On: October 28th, 2019]
- This U.S. Congressman Thinks Bitcoin Will Have Enormous Value And Utility Over The Long Term - Forbes [Last Updated On: October 28th, 2019] [Originally Added On: October 28th, 2019]
- Game Is On Again For Bitcoin, ETH, XRP, And XLM - Forbes [Last Updated On: October 28th, 2019] [Originally Added On: October 28th, 2019]
- These Are The Only 2 Major Crypto Assets Outperforming The Bitcoin Price This Year - Forbes [Last Updated On: October 28th, 2019] [Originally Added On: October 28th, 2019]
- Stablecoins Are The New Bitcoin In Congress - Forbes [Last Updated On: October 28th, 2019] [Originally Added On: October 28th, 2019]
- Bitcoin Has Crashed AgainWhat Now? - Forbes [Last Updated On: October 28th, 2019] [Originally Added On: October 28th, 2019]
- Forget ChinaIs This The Real Reason Bitcoin, Ethereum, Litecoin, And Ripples XRP Bounced? - Forbes [Last Updated On: October 28th, 2019] [Originally Added On: October 28th, 2019]
- After Recovery To $10,000, Bitcoin Should Hit $100,000 In 2021 - Forbes [Last Updated On: October 28th, 2019] [Originally Added On: October 28th, 2019]
- A Former Bank Of England Governor Warned The 2008 Crash That Inspired Bitcoin Could Happen Again - Forbes [Last Updated On: October 28th, 2019] [Originally Added On: October 28th, 2019]
- Bitcoin Bears Are Still There When You Zoom Out, Warns Analyst - BeInCrypto [Last Updated On: October 29th, 2019] [Originally Added On: October 29th, 2019]
- P2P Bitcoin Trading Volume in India Explodes Past All-Time High - BeInCrypto [Last Updated On: October 29th, 2019] [Originally Added On: October 29th, 2019]
- Exchange Tokens Have Outperformed BTC This Year - Bitcoin News [Last Updated On: October 29th, 2019] [Originally Added On: October 29th, 2019]
- Coffee for Crypto? ICE to Launch Bitcoin Consumer App with Starbucks - newsBTC [Last Updated On: October 29th, 2019] [Originally Added On: October 29th, 2019]
- Is Edward Snowden the Anonymous Bitcoin Time Traveler? - BeInCrypto [Last Updated On: October 29th, 2019] [Originally Added On: October 29th, 2019]
- Latest Bitcoin Cash price and analysis (BCH to USD) - Yahoo Finance [Last Updated On: October 29th, 2019] [Originally Added On: October 29th, 2019]
- Bitcoin and cryptocurrencies had a very bad day - TechCrunch [Last Updated On: October 29th, 2019] [Originally Added On: October 29th, 2019]
- Bitcoin price prediction: China-induced surge will continue if cryptocurrency defies dreaded 'Death Cross' - The Independent [Last Updated On: October 29th, 2019] [Originally Added On: October 29th, 2019]
- Russia: Government Official Expects To Mine 20% Of The Worlds Bitcoin - Cointelegraph [Last Updated On: October 29th, 2019] [Originally Added On: October 29th, 2019]
- Bitcoin Exploded: What Now? - Forbes [Last Updated On: October 29th, 2019] [Originally Added On: October 29th, 2019]
- Bitcoin Time-Traveller: Not Really From The Future, Shock! - Bitcoinist [Last Updated On: October 31st, 2019] [Originally Added On: October 31st, 2019]