Now Reading
Meet Miniscript, A Smart Contract Language That Makes Bitcoin Coding Easier


Meet Miniscript, A Smart Contract Language That Makes Bitcoin Coding Easier


Bitcoin, the virtual currency has been surrounded by controversies since its appearance in 2009. There has been a rise in the Bitcoin prices after the first fed rate cut since 2008. In India, currently, one Bitcoin is equal to ₹7,26,523. However, the Reserve Bank of India has imposed several instructions including barring banks from extending any services to the crypto community.



In countries like Morocco, Egypt, Pakistan, China, and Nepal, cryptocurrencies are classified as illegal and are not recognised as a legitimate form of currency. Numerous businesses like Dell, CheapAir and Overstock, who use Bitcoins for several important transactions.

Coding For Bitcoin

As time is money and everyone works towards optimising it, Bitcoin developers Pieter Wuille, Andrew Poelstra, and Sanket Kanjalkar at Blockstream Research developed a new coding language called Miniscript which can make Bitcoin coding simpler and faster than ever.


Miniscript is built on top of Script programming language and can compile to Bitcoin’s native language. Script is a basic programming language which consists of data such as public keys and signatures and Opcodes which are the simple functions that operate on the data.

The language uses a popular EasyScript alphabet-based abbreviation methodology which reduces the number of shorthand symbols to memorise with the help of a small set of abbreviating rules and writing actual abbreviations with special symbols.

In this language, the abbreviations are created using EasyScript method which means only a list of 9 special shorthand symbols representing the English alphabet is needed to remember where one specific symbol represents three English alphabets. For instance, letters D, E and F are written using “,” by placing it on top, middle and bottom.

Here is a list of Miniscript symbols given below

See Also

Steps to Learn This Language

Miniscript is structured in such a way that it enables analysis, composition and generic signing. To learn this language, there is a two-step process as mentioned below:

  1.  Learn the EasyScript abbreviation method
  2. Understand how to write EasyScript abbreviations with special non-alphabetical symbols assigned to represent an individual alphabet letter

With the help of this language, one can perform several tasks like: 

  • Write descriptors for addresses for scripts that implement things more complicated than multi-signature.
  • Able to make software that can deal with the composition of policies (e.g. have funds in a 2-of-3 setup where one of the 3 "keys" is itself a policy that involves perhaps multiple devices and timeouts).
  • One can be able to compile complex spending policies to efficient scripts.
  • Compute the bounds on the size of a witness for arbitrary scripts.
  •  Perform static analysis to see if any of Script's resource limitations might interfere with the ability to spend.

Advantages of Miniscript

  • This language increases the writing speed of non-alphabetical shorthand.
  • Miniscript enhances the simplicity of speed writing.
  • The fixed rules in this language reduce the transcription time and can also be applied to decode abbreviations.
  • It is a user-friendly and easily integrated language.
  • Any compatible scripts can easily be converted to Miniscript form while avoiding the need for additional metadata



Register for our upcoming events:


Enjoyed this story? Join our Telegram group. And be part of an engaging community.


Our annual ranking of Artificial Intelligence Programs in India for 2019 is out. Check here.

Provide your comments below

comments

What's Your Reaction?
Excited
0
Happy
0
In Love
0
Not Sure
0
Silly
0
Scroll To Top