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.
Story continues
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.
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.
Go here to see the original:
Writing Bitcoin Smart Contracts Is About to Get Easier With New Coding Language - Yahoo Finance
- Google removes malware Android apps used to secretly mine bitcoin [Last Updated On: April 26th, 2014] [Originally Added On: April 26th, 2014]
- Bitcoin exchange MtGox liquidated [Last Updated On: April 26th, 2014] [Originally Added On: April 26th, 2014]
- Bitcoin Wannabe Litecoin Emerges as Low-Price Challenger [Last Updated On: April 26th, 2014] [Originally Added On: April 26th, 2014]
- The Worlds First Bitcoin Debit Card Is Almost Here [Last Updated On: April 26th, 2014] [Originally Added On: April 26th, 2014]
- How does Bitcoin work? - Bitcoin - Open source P2P money [Last Updated On: April 26th, 2014] [Originally Added On: April 26th, 2014]
- Bitcoin - Wikipedia, the free encyclopedia [Last Updated On: April 26th, 2014] [Originally Added On: April 26th, 2014]
- The Bitcoin Group #27 - China Bans Bitcoin Again - Politics - Dark Market - Bitcoin VC - Video [Last Updated On: April 26th, 2014] [Originally Added On: April 26th, 2014]
- Edan Yago - Free Market Bitcoin regulation and Honduras free trade zones.mp4 - Video [Last Updated On: April 26th, 2014] [Originally Added On: April 26th, 2014]
- Bitcoin vs. Political Power: The Cryptocurrency Revolution - Stefan Molyneux at TNW Conference - Video [Last Updated On: April 26th, 2014] [Originally Added On: April 26th, 2014]
- Video: Roundup of This Week's Bitcoin News 25th April 2014 - Video [Last Updated On: April 26th, 2014] [Originally Added On: April 26th, 2014]
- Bitcoin Fredagsbar med Torben Mark Pedersen - Video [Last Updated On: April 26th, 2014] [Originally Added On: April 26th, 2014]
- Bitcoin and the Internet of Money - Video [Last Updated On: April 26th, 2014] [Originally Added On: April 26th, 2014]
- Bitcoin for Dummies - Video [Last Updated On: April 26th, 2014] [Originally Added On: April 26th, 2014]
- Bitcoin runner-up Litecoin emerges as low-price challenger [Last Updated On: April 27th, 2014] [Originally Added On: April 27th, 2014]
- Bitcoin or Gold? Squawk Walk Taipei- Squawkonomics - Video [Last Updated On: April 27th, 2014] [Originally Added On: April 27th, 2014]
- Bitcoin Miner AntMiner S1 180 - 200 GH/s Nu in de Aanbieding! - Video [Last Updated On: April 27th, 2014] [Originally Added On: April 27th, 2014]
- New Bitcoin Documentary: Boom or Bust - Video [Last Updated On: April 27th, 2014] [Originally Added On: April 27th, 2014]
- Bitcoin May v0.9.1 GitHub Source Code Development Visualization - Video [Last Updated On: April 27th, 2014] [Originally Added On: April 27th, 2014]
- Atomic-Trade Bitcoin Exchange. AML, BSA, FinCEN compliant - Video [Last Updated On: April 27th, 2014] [Originally Added On: April 27th, 2014]
- China Bans Bitcoin Again -- Bitcoin the Movie -- Startup for Startups Raises 2,000 BTC - Video [Last Updated On: April 27th, 2014] [Originally Added On: April 27th, 2014]
- 4/24/14 - Xapo Debit Card, Russia's 1st Bitcoin Conference, Silk Road 2.0 - Video [Last Updated On: April 27th, 2014] [Originally Added On: April 27th, 2014]
- What is Bitcoin? - Video [Last Updated On: April 27th, 2014] [Originally Added On: April 27th, 2014]
- David Andolfatto, How Does Bitcoin Work? - Video [Last Updated On: April 27th, 2014] [Originally Added On: April 27th, 2014]
- Australian Bitcoin traders hit by crash [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- Bitcoin traders hit by Mt.Gox crash [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- Market Extra: Bitcoin venture capital money hasnt kept up with buzz [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- Bitcoin price slips as China steps up regulation [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- Bitcoin price slips on China regulation [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- Win .33 Bitcoin ($150 or so, Depending on BTC value) - Meme game for May 1st - Take My Bitcoins - Video [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- Ron Paul on Bitcoin - Video [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- btc.sx Bitcoin derivatives platform George Samman clip - Video [Last Updated On: April 28th, 2014] [Originally Added On: April 28th, 2014]
- 'The Rise And Rise Of Bitcoin' Filmmaker: 'There Is No Answer Yet' [Last Updated On: April 29th, 2014] [Originally Added On: April 29th, 2014]
- Bitcoin the movie: It just had to happen [Last Updated On: April 29th, 2014] [Originally Added On: April 29th, 2014]
- Bitcoin Vies with New Cryptocurrencies as Coin of the Cyber Realm [Last Updated On: April 29th, 2014] [Originally Added On: April 29th, 2014]
- The Bitcoin Meetup - BitcoinMKE Hosts Jeffrey Tucker - Video [Last Updated On: April 29th, 2014] [Originally Added On: April 29th, 2014]
- MIT Bitcoin Expo 2014 - Video [Last Updated On: April 29th, 2014] [Originally Added On: April 29th, 2014]
- Bitcoin Expo 2014: Fireside Chat with Dr Gavin Wood - Video [Last Updated On: April 29th, 2014] [Originally Added On: April 29th, 2014]
- Rise Bitcoin Singapore - Video [Last Updated On: April 29th, 2014] [Originally Added On: April 29th, 2014]
- Preview: Bitcoin Authenticator - 2FA for wallets - Video [Last Updated On: April 29th, 2014] [Originally Added On: April 29th, 2014]
- The Bitcoin Group #27 (Live) - China Bans Bitcoin Again - Politics - Dark Market - Bitcoin VC - Video [Last Updated On: April 29th, 2014] [Originally Added On: April 29th, 2014]
- 4/25/14 - More China uncertainty, Missourian bitcoin warning, BadLepricon malware - Video [Last Updated On: April 29th, 2014] [Originally Added On: April 29th, 2014]
- Money & Tech at The Rise And Rise Of Bitcoin Afterparty - Video [Last Updated On: April 29th, 2014] [Originally Added On: April 29th, 2014]
- New Bitcoin student club at MIT will promote the virtual currency [Last Updated On: April 30th, 2014] [Originally Added On: April 30th, 2014]
- 4/29/14 - MIT Bitcoin Project, Mt Gox revival plan, Mastercard lobbyists & Team Rubicon - Video [Last Updated On: April 30th, 2014] [Originally Added On: April 30th, 2014]
- BitCoin Dentist GoCoin Fox News Interview - Video [Last Updated On: April 30th, 2014] [Originally Added On: April 30th, 2014]
- Bitcoin Foundation Election Hiccups -- Pathetic Ohio Bans Bitcoins -- Dogecon SF 2014 - Video [Last Updated On: April 30th, 2014] [Originally Added On: April 30th, 2014]
- Bitcoin Slips to $420 as BTC China Halts Transactions - Video [Last Updated On: April 30th, 2014] [Originally Added On: April 30th, 2014]
- MultiSig Plus BitCoin Multi Coin Wallet looks like HUGE INVESTMENT potential! - Video [Last Updated On: April 30th, 2014] [Originally Added On: April 30th, 2014]
- Bitcoin: what happens when the miners pack up their gear? [Last Updated On: May 1st, 2014] [Originally Added On: May 1st, 2014]
- Dark Wallet Is About to Make Bitcoin Money Laundering Easier Than Ever [Last Updated On: May 1st, 2014] [Originally Added On: May 1st, 2014]
- Bitcoin Talk Show #7 -- Skype BitcoinTalkShow to Call in Live! 🙂 - Video [Last Updated On: May 1st, 2014] [Originally Added On: May 1st, 2014]
- Basic Bitcoin Bitches - Video [Last Updated On: May 1st, 2014] [Originally Added On: May 1st, 2014]
- Gold standard vs Fiat vs Bitcoin - Truthloader - Video [Last Updated On: May 1st, 2014] [Originally Added On: May 1st, 2014]
- How to Defund the System: Bitcoin vs. the Central Banksters - Video [Last Updated On: May 1st, 2014] [Originally Added On: May 1st, 2014]
- Bitcoin, Anarchy and Freedom with Roger Ver - Video [Last Updated On: May 1st, 2014] [Originally Added On: May 1st, 2014]
- MIT Goes Bitcoin-Wild [Last Updated On: May 1st, 2014] [Originally Added On: May 1st, 2014]
- Bitcoin Weekly 2014 April 30: Bloomberg adds Bitcoin to their market index, MIT to produce campus-wide bitcoin ... [Last Updated On: May 1st, 2014] [Originally Added On: May 1st, 2014]
- 'Dark Wallet' wants to make Bitcoin even harder to trace [Last Updated On: May 1st, 2014] [Originally Added On: May 1st, 2014]
- Bitcoin made simple (video animation) - Video [Last Updated On: May 1st, 2014] [Originally Added On: May 1st, 2014]
- Jon Matonis: Bitcoin - The future of commerce? - Video [Last Updated On: May 1st, 2014] [Originally Added On: May 1st, 2014]
- $100 in Bitcoin Going to Every MIT Undergrad - Video [Last Updated On: May 1st, 2014] [Originally Added On: May 1st, 2014]
- The Rise of Digital Currency - Video [Last Updated On: May 1st, 2014] [Originally Added On: May 1st, 2014]
- Money Goes Virtual: The Bitcoin Bourse - Video [Last Updated On: May 2nd, 2014] [Originally Added On: May 2nd, 2014]
- Bitcoin Lights with LIFX - Video [Last Updated On: May 2nd, 2014] [Originally Added On: May 2nd, 2014]
- Bitcoin: How We Got Here and Where We Are Going [Last Updated On: May 3rd, 2014] [Originally Added On: May 3rd, 2014]
- 5/1/14 - Larry Summers warns critics, Paym system & Bitcoin Center NYC roundtable - Video [Last Updated On: May 3rd, 2014] [Originally Added On: May 3rd, 2014]
- On est Connect S2 #07 1/2 : BitCoin et Musique sur Internet - Video [Last Updated On: May 3rd, 2014] [Originally Added On: May 3rd, 2014]
- MIT Undergrads To Receive $100 Worth Of Bitcoin This Fall - Video [Last Updated On: May 3rd, 2014] [Originally Added On: May 3rd, 2014]
- Why it only took ME less than 2 minutes to believe in Bitcoin - Video [Last Updated On: May 3rd, 2014] [Originally Added On: May 3rd, 2014]
- Bitcoin Basics and Regulation Thoughts from NH Liberty Forum - Bruce Fenton - Video [Last Updated On: May 3rd, 2014] [Originally Added On: May 3rd, 2014]
- PRIMER CAJERO DE BITCOIN EN BIT CENTER DE TIJUANA - Video [Last Updated On: May 3rd, 2014] [Originally Added On: May 3rd, 2014]
- Yelp adds Bitcoin acceptance to business listings - Video [Last Updated On: May 3rd, 2014] [Originally Added On: May 3rd, 2014]
- Bitcoin A Terrorist Threat? Counterterrorism Program Names Virtual Currencies As Area Of Interest [Last Updated On: May 4th, 2014] [Originally Added On: May 4th, 2014]
- How Does Bitcoin Works - Video [Last Updated On: May 4th, 2014] [Originally Added On: May 4th, 2014]
- 10 Things You Didn't Know About BitCoin - Video [Last Updated On: May 4th, 2014] [Originally Added On: May 4th, 2014]
- BITCOIN The Future of Money - Video [Last Updated On: May 4th, 2014] [Originally Added On: May 4th, 2014]
- Bitcoin Miner Review - Video [Last Updated On: May 4th, 2014] [Originally Added On: May 4th, 2014]
- The Bitcoin Group #28 (Live) - Yelp Lists Bitcoin - MIT Bitcoin $100 - Dark Wallet - Ohio Bans BTC - Video [Last Updated On: May 4th, 2014] [Originally Added On: May 4th, 2014]
- Bitcoin: Gary North is Mentally Deranged And Bitcoin Will Change Everything - Video [Last Updated On: May 4th, 2014] [Originally Added On: May 4th, 2014]
- Who is the Bitcoin Warlord? - Video [Last Updated On: May 4th, 2014] [Originally Added On: May 4th, 2014]