MASTer Plan: Better Bitcoin Smart Contracts Could Go Live This Year

The wait for more advanced bitcoin smart contracts might soon be over.

Spurred by last month’s SegWit activation, bitcoin developers are reviving a plan that would see the world’s most popular blockchain retooled with functionality long synonymous with ethereum and its more expressive code executions.

Known as Merkelized Abstract Syntax Trees (MAST), the concept has moved in fits and starts – Russell O’Connor, Pieter Wuille and Peter Todd put forward the idea, and Johnson Lau put together his own proposal last year – but the upgrade to SegWit makes the change not only possible, but possibly actionable soon. 

So, Blockstream co-founder Mark Friedenbach is now breathing new life into the idea, putting forth a proposal this week that would have MAST deployed by way of soft fork (a backwards-compatible change to the blockchain’s rule set).

Should it be enacted (and in the world of bitcoin upgrades, that’s a big if), it would mean greater transaction flexibility. With it, users can require that a transaction will go through only if one of two or more things happen. For instance, a transaction could be redeemable only after a certain period of time, or only once two users give their blessing.

MAST also enables better user privacy, as it stores transaction data in a new way and doesn’t reveal unused scipts to the public blockchain. And finally, it could also allow for increased scaling potential, since it enables less data to be stored on the blockchain.

Merging features

Getting to those benefits, though, means fusing together two technical features: pay-to-script-hash (P2SH) and Merkle trees.

Must READ:   Bitcoin: Millennials' Fake Gold |

In an email addressing bitcoin developers, Friedenbach outlines three Bitcoin Improvement Proposals (BIPs), including the code, for adding two scripts that would make it possible for users to take advantage of MAST.

He explained what his proposed idea would enable, writing:

“These two features together are enough to enable a range of applications such as tree signatures … and a generalized MAST useful for constructing private smart contracts.”

The first BIP, “Fast Merkle Trees,” proposes a different Merkle tree structure than the one currently used by bitcoin to store transactions in blocks. The second BIP, arguably the most important one, describes the opcode – MERKLE-BRANCH-VERIFY – which is a script that would allow users to make new types of transactions.

“In brief summary, MERKLE-BRANCH-VERIFY allows script authors to force redemption to use values selected from a pre-determined set committed to in the scriptPubKey, but without requiring revelation of unused elements in the set for both enhanced privacy and smaller script sizes,” Friedenbach wrote.

The final BIP, “Tail Call Execution Semantics,” is a pretty complex read, but – put simply – explains a new way for bitcoin smart contracts to terminate.

The road to upgrades

Despite how complicated the technology sounds, Friedenbach said in practice it’s relatively straightforward.

“I believe that the implementation of these features is simple enough, and the use cases compelling enough that we could [roll out] these features in relatively short order, perhaps before the end of the year,” he wrote.

Interestingly, though, he mentioned the change could be made one of two ways, by BIP 8 or BIP 9, two methods of making bitcoin upgrades which have had plenty of back-and-forth over the past year.

Must READ:   Japan Endorses 11 Different Crypto Exchanges, Turns Into Friendliest Asian Bitcoin Market

SegWit was originally proposed to deploy via BIP 9, which called for a certain percentage of miners to signal for the change before it could be deployed. Because miners didn’t signal, SegWit stalled, and some argued BIP 9 gave miners (one group in an elaborate ecosystem) too much control over the future of bitcoin.

Because of that, some users have since rallied around BIP 8 as a better upgrading mechanism because it relies on bitcoin users and businesses rather than mining pools to enforce the change.

But Friedenbach’s lack of stance regarding this upgrading mechanism raises the question: after all the drama over SegWit – which took nearly two years to activate – how will upgrades be made in the future?

The way users, companies and developers choose to go on MAST (if they decide it’s the right step), might help determine that.

Disclosure: CoinDesk is a subsidiary of Digital Currency Group, which has an ownership stake in Blockstream. 

Mathematical theory image via Shutterstock

The leader in blockchain news, CoinDesk is an independent media outlet that strives for the highest journalistic standards and abides by a strict set of editorial policies. Interested in offering your expertise or insights to our reporting? Contact us at [email protected].

22 Replies to “MASTer Plan: Better Bitcoin Smart Contracts Could Go Live This Year”

  1. I know this if off topic but I’m looking into starting my own weblog and was wondering what all is required to get setup? I’m assuming having a blog like yours would cost a pretty penny? I’m not very internet savvy so I’m not 100 sure. Any recommendations or advice would be greatly appreciated. Many thanks

  2. I’m really enjoying the design of your blog. Do you ever run into any kind of web browser interface problems? Some of my own site audience have lamented about my free movie sites blog not operating effectively in Explorer but looks very good in Opera. Have you got any advice to help repair that situation?

  3. I am definitely loving the theme/design of your website. Do you face any internet browser interface situations? A few of my site readers have lamented concerning my investing in real estate blog not working correctly in Explorer but looks wonderful in Chrome. Have you got any kind of tips to help correct the issue?

  4. I’m really interested to learn what blog system you are using? I am having a few small protection difficulties with the latest blog regarding symptoms of asthma so I’d love to find a thing more secure. Do you have any solutions?

  5. Appreciating the dedication you invested in the website and thorough info you display. It’s amazing to find a blog once in a while that is just not the similar out of date re-written information. Awesome read! We’ve saved your blog and I’m adding the RSS feeds to my own current sports news webpage.

  6. My spouse and I unquestionably enjoy your site and find most of your posts to be just what I am looking for. Would you offer other people to write material for you? I would not mind producing an article about steam cleaning companies or maybe on a number of the things you are writing about on this site. Nice site!

  7. Thanks for the marvelous posting! I seriously enjoyed reading it, you can be a great author.I will make certain to bookmark your blog and will eventually
    come back sometime soon. I want to encourage one to continue your great job,
    have a nice afternoon!

  8. Many thanks for this wonderful content! I quite appreciated finding out about it.I will be sure to save this website and definitely will come back very soon. I wish to encourage that you keep going with your great writing, maybe discuss how to use microsoft excel too, have a wonderful morning!

  9. I came right here from a different page related to videoconferencing and considered I may as well check out this page. I like what I see thus now I am following you. Looking towards looking into your blog yet again.

  10. There are actually fantastic developments on the style of this website, I really enjoy it. My own is regarding parking violation and presently there are plenty of stuff to be done, I’m yet still a newcomer in website development. Thanks!

  11. Hi and thanks for the excellent posting! I really enjoyed reading it.I’ll be sure to bookmark the website and will often return very soon. I would really like to encourage you to definitely keep going with the nice work, perhaps comment on real card numbers also, have a superb morning!

  12. ANPC is a free nation for and by the living men and women of the earth. This Private Nation is a grassroots association based out of Indonesia having its own International Charter, Peace Treaty, Constitution, Rules of conduct and has adopted the Declaration of Human Rights. These Treaties have been Registered by International Notice to the Hague and World Court as well as other agencies worldwide. The entire goal and mission of ANPC is WORLD PEACE and freedom for all the nationals of the world, focusing on a peaceful gathering together of all tribes and nations. Our living men and women are to live as Peaceful Inhabitants on the land, striving always to create a better world today and for future generations.

Leave a Reply

Your email address will not be published. Required fields are marked *