• 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
Monday, September 25, 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

Bitcoin Holding Above $26K Is ‘Remarkable’ as Equities Take a Hit. What’s Next for BTC’s Price?

Bitcoin Holding Above $26K Is ‘Remarkable’ as Equities Take a Hit. What’s Next for BTC’s Price?

22 September 2023
AI Should Be Decentralized, But How?

AI Should Be Decentralized, But How?

22 September 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

Bitcoin Holding Above $26K Is ‘Remarkable’ as Equities Take a Hit. What’s Next for BTC’s Price?

Bitcoin Holding Above $26K Is ‘Remarkable’ as Equities Take a Hit. What’s Next for BTC’s Price?

22 September 2023
0

The 200-week and 200-day moving averages converge at $27,800, acting as an obstacle to further BTC price gains. Source link

AI Should Be Decentralized, But How?

AI Should Be Decentralized, But How?

22 September 2023
0

The case for greater transparency and verifiability in AI. But is decentralization the best way to achieve that and is...

CFTC Denies Kalshi’s Plan to Let Users Bet on Control of U.S. Congress

CFTC Denies Kalshi’s Plan to Let Users Bet on Control of U.S. Congress

22 September 2023
0

Regulators said the plans weren't in the public interest, after a court squabble involving rival service PredictIt Source link

First Mover Americas: Bitcoin Vapid; Toncoin Leads Weekly Gains

First Mover Americas: Bitcoin Vapid; Toncoin Leads Weekly Gains

22 September 2023
0

The latest price moves in bitcoin (BTC) and crypto markets in context for Sept. 22, 2023. First Mover is CoinDesk’s...

Sam Bankman-Fried Sort of Had a Rough Day

Sam Bankman-Fried Sort of Had a Rough Day

22 September 2023
0

Yesterday was arguably not a great day for Sam Bankman-Fried. First, the judge overseeing his case rejected all seven of...

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!

  • Bitcoin Holds $26K Fort, Ethereum, Dogecoin Head Lower As Sharp Sell-Off Hits Equity Markets: Analyst Looks To ‘Uptober’ For Relief Rally
  • Is XRP Getting Squeezed? Price Remains Anemic
  • Solana’s #1 NFT Market Surpasses NFT Projects Running on Ethereum 

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)$26,183.00-1.50%
  • ethereumEthereum(ETH)$1,579.44-0.88%
  • tetherTether(USDT)$1.00-0.01%
  • binancecoinBNB(BNB)$208.94-0.62%
  • rippleXRP(XRP)$0.50-1.18%
  • usd-coinUSDC(USDC)$1.000.00%
  • staked-etherLido Staked Ether(STETH)$1,579.55-0.90%
  • dogecoinDogecoin(DOGE)$0.061000-0.92%
  • cardanoCardano(ADA)$0.244479-0.33%
  • solanaSolana(SOL)$19.52-0.22%
  • ToncoinToncoin(TON)$2.21-3.52%
  • tronTRON(TRX)$0.0841030.45%
  • Wrapped stETHWrapped stETH(WSTETH)$1,864.880.36%
  • polkadotPolkadot(DOT)$4.00-0.46%
  • matic-networkPolygon(MATIC)$0.52-1.11%
  • litecoinLitecoin(LTC)$64.32-0.88%
  • shiba-inuShiba Inu(SHIB)$0.000007-0.52%
  • wrapped-bitcoinWrapped Bitcoin(WBTC)$26,182.00-1.65%
  • bitcoin-cashBitcoin Cash(BCH)$206.04-1.68%
  • chainlinkChainlink(LINK)$7.190.12%
  • daiDai(DAI)$1.000.00%
  • true-usdTrueUSD(TUSD)$1.00-0.10%
  • leo-tokenLEO Token(LEO)$3.76-2.19%
  • uniswapUniswap(UNI)$4.24-0.86%
  • stellarStellar(XLM)$0.113006-0.38%
  • avalanche-2Avalanche(AVAX)$8.80-1.49%
  • moneroMonero(XMR)$143.940.76%
  • okbOKB(OKB)$42.73-0.14%
  • binance-usdBinance USD(BUSD)$1.00-0.03%
  • ethereum-classicEthereum Classic(ETC)$15.19-0.73%
  • cosmosCosmos Hub(ATOM)$7.00-1.14%
  • hedera-hashgraphHedera(HBAR)$0.050111-1.76%
  • filecoinFilecoin(FIL)$3.22-0.70%
  • GGTKNGGTKN(GGTKN)$0.1121180.75%
  • crypto-com-chainCronos(CRO)$0.050523-1.50%
  • lido-daoLido DAO(LDO)$1.48-1.03%
  • internet-computerInternet Computer(ICP)$2.94-0.74%
  • quant-networkQuant(QNT)$88.66-2.20%
  • MantleMantle(MNT)$0.3964091.03%
  • AptosAptos(APT)$5.405.17%
  • vechainVeChain(VET)$0.016681-1.20%
  • makerMaker(MKR)$1,279.97-0.80%
  • nearNEAR Protocol(NEAR)$1.110.02%
  • ArbitrumArbitrum(ARB)$0.82-0.39%
  • optimismOptimism(OP)$1.27-1.45%
  • KaspaKaspa(KAS)$0.0480734.95%
  • EdgecoinEdgecoin(EDGT)$1.00-0.03%
  • Rocket Pool ETHRocket Pool ETH(RETH)$1,713.17-1.01%
  • BSCEXBSCEX(BSCX)$237.190.34%
  • aaveAave(AAVE)$62.13-1.35%