Segwit Creator Introduces Optimized Language For Bitcoin Smart Contracts

Bitcoin Core developer, Peiter Wuille, has introduced a new programming language called Miniscript, to simplify smart-contract development for Bitcoin. One of the most prolific and respected Core-developers, Wuille is responsible for the creation and implementation of Segregated Witness (SegWit).


‘Miniscript’ Is Like An Enhanced ‘Script’ For Bitcoin

Miniscript is built on top of the existing Script language for Bitcoin smart contracts and aims to optimise it. Script allows the specification of certain conditions which must be met in order for bitcoin to be spent. This could be a time-limit, before which coins are locked in, or the requirement of multiple signatures to verify a transaction.

However, Script becomes unwieldy when required to perform various kinds of static analysis, generic signing, and compilation of policies. According to Wuille’s documentation, Miniscript functions are a representation for scripts that makes these sort of operations possible.

Reducing Barriers Between Pieces Of Software

Wuille tweeted an example of how policies can be combined:

Imagine a company wants to protect its cold storage funds using a 2-of-3 multisig policy with 3 executives. One of the executives however has a nice 2FA/multisig/timelock based setup on his own. Why can’t that entire setup be one of the multisig “participants”?

With Miniscript, the executive’s two factor authentication (2FA) could seamlessly work with the cold storage requirements. A script could compute the composite sig required and still be able to sign as a participant in the multisig.

Future Implementation Into Bitcoin Core

Wuille stated that he would work into incorporating parts of Miniscript into Bitcoin core if there is a desire for this amongst developers. However as published, it has already undergone extensive testing against actual Bitcoin consensus rules.

Wuille says that ideally, it would be included run many pieces of wallet technology, and his co-developers have been working on a Rust library for it.

Wuille is a high-profile figure in the Bitcoin community, and earlier this year participated in the Lightning Torch relay.

What do you think of the new optimized smart contract language? Add your thoughts below!


Images via Shutterstock

The Rundown

The post appeared first on Bitcoinist

Buy Bitcoin with Credit Card

BitMex Leverage Trading

Automated Trading Bot

Related Posts

Leave a Reply

Bitcoin (BTC) $ 94,474.31 2.25%
Ethereum (ETH) $ 3,271.47 1.99%
Tether (USDT) $ 0.999503 0.05%
XRP (XRP) $ 2.16 3.07%
BNB (BNB) $ 655.59 0.86%
Solana (SOL) $ 179.14 1.44%
Dogecoin (DOGE) $ 0.309366 2.28%
USDC (USDC) $ 1.00 0.15%
Lido Staked Ether (STETH) $ 3,263.98 1.99%
Cardano (ADA) $ 0.878947 1.85%