• Home
  • Cryptocurrency
    • Bitcoin
    • Ethereum
    • XRP
    • Litecoin
    • Altcoin
    • Cardano
    • Tether
    • DOGE
    • Solano
    • XLM
    • DOT
    • XDC
    • SHIBA
    • BNB
    • Ape
    • HBAR
    • QNT
  • Blockchain
  • Regulation
  • Market
  • Live
    • Prices
    • ICO
  • Meta
    • NFT
  • Technical Analysis
    • XRP
    • BTC
    • XLM
    • ADA
    • TETHER
    • ETC
    • ETH
    • DOGE
    • LTC
  • Exchange
  • Mining
Wednesday, March 22, 2023
  • Login
  • Register
Coin24h.com
  • Home
  • Cryptocurrency
    • Bitcoin
    • Ethereum
    • XRP
    • Litecoin
    • Altcoin
    • Cardano
    • Tether
    • DOGE
    • Solano
    • XLM
    • DOT
    • XDC
    • SHIBA
    • BNB
    • Ape
    • HBAR
    • QNT
  • Blockchain
  • Regulation
  • Market
  • Live
    • Prices
    • ICO
  • Meta
    • NFT
  • Technical Analysis
    • XRP
    • BTC
    • XLM
    • ADA
    • TETHER
    • ETC
    • ETH
    • DOGE
    • LTC
  • Exchange
  • Mining
No Result
View All Result
  • Home
  • Cryptocurrency
    • Bitcoin
    • Ethereum
    • XRP
    • Litecoin
    • Altcoin
    • Cardano
    • Tether
    • DOGE
    • Solano
    • XLM
    • DOT
    • XDC
    • SHIBA
    • BNB
    • Ape
    • HBAR
    • QNT
  • Blockchain
  • Regulation
  • Market
  • Live
    • Prices
    • ICO
  • Meta
    • NFT
  • Technical Analysis
    • XRP
    • BTC
    • XLM
    • ADA
    • TETHER
    • ETC
    • ETH
    • DOGE
    • LTC
  • Exchange
  • Mining
No Result
View All Result
Coin24h.com
No Result
View All Result
Ledger Nano X - The secure hardware wallet
ADVERTISEMENT

Writing Bitcoin Smart Contracts Is About to Get Easier With New Coding Language

13 August 2020
in Blockchain
Reading Time: 4 mins read
A A
0
189
SHARES
1.5k
VIEWS
Share on FacebookShare on Twitter
cryptotrader
ADVERTISEMENT
Cryptohopper
ADVERTISEMENT


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.

Tier one: ‘Script’ smart contracts

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 it’s 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. 

The unwieldiness of Bitcoin Script was one of the factors that led Vitalik Buterin to design the Ethereum platform in the first place. Solidity, Ethereum’s 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?

Tier two: Miniscript

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 we’re not anywhere close to using Script’s full potential is that actually constructing scripts for nontrivial tasks is cumbersome. It’s 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 that’s 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.

Tier three: Minsc

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.

“Minsc’s 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 doesn’t add anything new to Script, it just makes it easier to use.

“It doesn’t let you do anything that Miniscript doesn’t already, similarly to Miniscript itself in relation to Bitcoin Script,” Ivgi said.

Bitcoin smart contracts and Minsc: Where will they go next?

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. Bitcoin’s smart contracting abilities are likely to expand even further, such as with Taproot, a likely upgrade on Bitcoin’s horizon. Minsc will be there to make these contracts easier to create.

Disclosure

The leader in blockchain news, CoinDesk is a media outlet that strives for the highest journalistic standards and abides by a strict set of editorial policies. CoinDesk is an independent operating subsidiary of Digital Currency Group, which invests in cryptocurrencies and blockchain startups.



Source link

Related articles

This Crisis Will Define the Future of Money

This Crisis Will Define the Future of Money

17 March 2023
How Effective Altruism Power Brokers Helped Make Sam Bankman-Fried

How Effective Altruism Power Brokers Helped Make Sam Bankman-Fried

17 March 2023
[crypto-donation-box]
Tags: BitcoinCodingContractsEasierLanguageSmartWriting
Share76Tweet47
Ledger Nano X - The secure hardware wallet
Previous Post

First Mover: Ethereum Faces Inflation Problem as Gas Fees Soar

Next Post

History Suggests Bitcoin Could Soon See a Rapid Rise to Fresh All-Time Highs

Related Posts

This Crisis Will Define the Future of Money

This Crisis Will Define the Future of Money

17 March 2023
0

The recent collapse of three high-profile banks - Silicon Valley Bank, Silvergate Bank and Signature Bank - has caused worrying...

How Effective Altruism Power Brokers Helped Make Sam Bankman-Fried

How Effective Altruism Power Brokers Helped Make Sam Bankman-Fried

17 March 2023
0

How Effective Altruism Power Brokers Helped Make Sam Bankman-Fried Source link

First Mover Americas: Bitcoin Busts Through $26K

First Mover Americas: Bitcoin Busts Through $26K

17 March 2023
0

Bitcoin, the world’s largest cryptocurrency, is back trading above $26,000 for the second time this week, up 7.5% in the...

On-Chain Data Reveals How Crypto Trading Firms Worked the USDC Stablecoin Repeg

On-Chain Data Reveals How Crypto Trading Firms Worked the USDC Stablecoin Repeg

17 March 2023
0

Trading firms were quick to jump on the USD coin (USDC) long trade last weekend as the stablecoin, which was...

Bitcoin Is Benefiting From Crypto’s Flight to Quality: Matrixport

Bitcoin Is Benefiting From Crypto’s Flight to Quality: Matrixport

17 March 2023
0

Investors are shifting into bitcoin from stablecoins as well as more volatile cryptocurrencies, the report said. Source link

Load More
Next Post

History Suggests Bitcoin Could Soon See a Rapid Rise to Fresh All-Time Highs

Leave a Reply Cancel reply

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

We publish a comprehensive news feed covering all news relevant to the crypto user, covering main industry news, politics and regulation as well as consumer-level “news you can use” (practical stuff), including handy DIY tips, links to useful tools, unbiased reviews and opinions revolving around cryptocurrency. Simple logic and real-world examples are preferred before technical jargon and personal rants.

Categories

  • Altcoin
  • ApeCoin
  • Bitcoin
  • Blockchain
  • BNB
  • Cardano
  • Cryptocurrency
  • DOGE
  • DOT
  • Ethereum
  • HBAR
  • Litecoin
  • Market
  • Meta News
  • Mining
  • NFT
  • QNT
  • Regulation
  • SHIBA
  • Solano
  • Tether
  • Uncategorized
  • XDC
  • XLM
  • XRP

What’s New Here!

  • Shiba Inu: New listing of SHIB by Japanese crypto exchange, 4,600% burn rate increase, launch of Shibarium and the metaverse
  • States debate whether to restrict—or invite—crypto mining
  • Barcelona player is the star of TOTW 21 in FIFA 23 Ultimate Team

Newsletter

  • About Us
  • Privacy Policy
  • Contact Us

© 2022 coin24h.com

No Result
View All Result
  • Home
  • Cryptocurrency
    • Bitcoin
    • Ethereum
    • XRP
    • Litecoin
    • Altcoin
    • Cardano
    • Tether
    • DOGE
    • Solano
    • XLM
    • DOT
    • XDC
    • SHIBA
    • BNB
    • Ape
    • HBAR
    • QNT
  • Blockchain
  • Regulation
  • Market
  • Live
    • Prices
    • ICO
  • Meta
    • NFT
  • Technical Analysis
    • XRP
    • BTC
    • XLM
    • ADA
    • TETHER
    • ETC
    • ETH
    • DOGE
    • LTC
  • Exchange
  • Mining

© 2020 coin24h.com

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms below to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In
  • bitcoinBitcoin(BTC)$27,290.00-3.09%
  • ethereumEthereum(ETH)$1,729.15-3.95%
  • tetherTether(USDT)$1.010.03%
  • binancecoinBNB(BNB)$322.32-4.53%
  • usd-coinUSD Coin(USDC)$1.00-0.03%
  • rippleXRP(XRP)$0.423523-9.80%
  • cardanoCardano(ADA)$0.357850-3.61%
  • dogecoinDogecoin(DOGE)$0.074080-3.51%
  • staked-etherLido Staked Ether(STETH)$1,725.47-4.00%
  • matic-networkPolygon(MATIC)$1.10-3.74%
  • solanaSolana(SOL)$21.38-5.37%
  • binance-usdBinance USD(BUSD)$1.00-0.18%
  • polkadotPolkadot(DOT)$6.05-4.90%
  • litecoinLitecoin(LTC)$86.524.67%
  • shiba-inuShiba Inu(SHIB)$0.000011-3.78%
  • tronTRON(TRX)$0.059510-11.57%
  • avalanche-2Avalanche(AVAX)$16.69-4.23%
  • daiDai(DAI)$1.000.14%
  • uniswapUniswap(UNI)$6.05-5.62%
  • wrapped-bitcoinWrapped Bitcoin(WBTC)$27,380.00-2.69%
  • ToncoinToncoin(TON)$2.39-0.96%
  • chainlinkChainlink(LINK)$7.10-4.04%
  • cosmosCosmos Hub(ATOM)$11.29-4.98%
  • leo-tokenLEO Token(LEO)$3.37-2.84%
  • ethereum-classicEthereum Classic(ETC)$20.05-3.87%
  • moneroMonero(XMR)$148.17-2.57%
  • okbOKB(OKB)$44.93-0.85%
  • bitcoin-cashBitcoin Cash(BCH)$125.60-6.29%
  • stellarStellar(XLM)$0.090779-5.64%
  • filecoinFilecoin(FIL)$5.58-5.73%
  • AptosAptos(APT)$12.643.58%
  • true-usdTrueUSD(TUSD)$1.00-0.19%
  • lido-daoLido DAO(LDO)$2.34-2.15%
  • hedera-hashgraphHedera(HBAR)$0.060619-4.67%
  • quant-networkQuant(QNT)$124.23-4.75%
  • crypto-com-chainCronos(CRO)$0.068329-4.56%
  • nearNEAR Protocol(NEAR)$1.94-6.06%
  • vechainVeChain(VET)$0.022423-5.96%
  • blockstackStacks(STX)$1.141.92%
  • algorandAlgorand(ALGO)$0.214791-3.47%
  • internet-computerInternet Computer(ICP)$5.03-4.50%
  • apecoinApeCoin(APE)$3.98-3.39%
  • fantomFantom(FTM)$0.469093-2.70%
  • the-graphThe Graph(GRT)$0.143577-4.70%
  • eosEOS(EOS)$1.09-7.70%
  • the-sandboxThe Sandbox(SAND)$0.63-6.10%
  • aaveAave(AAVE)$74.32-5.33%
  • decentralandDecentraland(MANA)$0.58-6.00%
  • elrond-erd-2MultiversX(EGLD)$42.00-5.28%
  • fraxFrax(FRAX)$1.000.19%