Cashscript Is Coming, Bringing Ethereum-Like Smart Contracts to Bitcoin Cash 1

On May 27, the analytics and data web portal Coin Dance announced the team has added the Cashscript project to the website’s development tracker. Cashscript is a high-level language that enables basic smart contract functionality on the Bitcoin Cash (BCH) network.

Also Read: Crypto Assets Outshine Most Traditional Investments in 2019

Meet Cashscript: A High-Level Programming Language for Bitcoin Cash

Smart contract functionality is coming to the Bitcoin Cash network, which will allow developers to not only use the peer-to-peer cash as a medium of exchange, but also execute unique decision-based transactions. This week, data website Coin Dance added a new project called Cashscript to the site’s development tracker so BCH supporters can get a glimpse of this concept.

Cashscript Is Coming, Bringing Ethereum-Like Smart Contracts to Bitcoin Cash

The creator of Cashscript, software engineer Rosco Kalis, has been working relentlessly on the protocol and a sneak preview of the project’s potential was shared on Reddit. On May 28, news.Bitcoin.com discussed the Cashscript project with Kalis to give our readers an inside look at this innovative concept. Kalis explained that Cashscript is a high-level language that compiles down to Bitcoin Script. The developer said he was inspired by Tendo Pein’s Spedn language, but found it too difficult to integrate into his web development workflow.

“With Cashscript we are mainly focusing on making that integration easier by providing a Javascript Software Development Kit (SDK) that allows you to plug in Cashscript contracts into any web application,” Kalis told news.Bitcoin.com. “For this workflow as well as the syntax of the language we took a lot of inspiration from Ethereum’s Solidity language and Web3.js / Truffle libraries,” Kalis remarked, adding:

The goal with this is also to make it easier for developers of either community to get involved with the other.

Cashscript Is Coming, Bringing Ethereum-Like Smart Contracts to Bitcoin Cash
Photo excerpt from the thesis on high-level Bitcoin Script languages written by Rosco Kalis.

A Javascript SDK That Allows Developers to Easily Plug Cashscript Contracts Into Web Applications

Cashscript is still a work in progress and still has a ways to go before the project is close to being released to the public. Kalis detailed that he believes clear documentation will be added in the coming weeks, and people could start playing around with Cashscript after that. But the developer emphasized that there needs to be a lot of testing and more time to make sure that Cashscript is safe to use. Kalis is also currently writing his Master’s thesis about the project and high-level Bitcoin Script languages. At the moment the engineer said that most of the internal compiler work for the language is done, but the Script output is far from optimized. Right now the generated Scripts are quite a lot bigger than they have to be, Kalis noted.

“What we’re currently working on is the Javascript SDK that allows us to easily plug Cashscript contracts into web applications — We have the first version of this SDK, but we’re still working out the details of it,” Kalis said. “The compiled Scripts and SDK should also still be tested more to make sure that they can safely be used — Finally, we’re also still working on creating the documentation for the language and SDK, as we currently only have a few examples online.”

Cashscript Is Coming, Bringing Ethereum-Like Smart Contracts to Bitcoin Cash

Bringing Talented Blockchain Developers Together to Create Smart Contracts With a Common Workflow and API

Kalis and other BCH developers have been testing the Script output on the BCH testnet and the software engineer has also been steadily working on the documentation of the language. News.Bitcoin.com then asked Kalis to explain what types of decision-based transactions could be created using the Cashscript protocol. Kalis highlighted that Cashscript could be used to implement zero-confirmation forfeits, a concept that could reduce the amount of time a malicious entity has in an attempt to double spend zero-confirmation transactions. An example of Cashscript and zero-conf forfeits can be seen here on the project’s Github repository. Behind the scenes, the Cashscript SDK uses Gabriel Cardona’s Bitbox library, which handles all things Bitcoin Cash. “For usage, any web application that would like to handle Bitcoin transactions other than P2PKH could use a CashScript contract for that,” Kalis asserted.

“Something else that we have in our SDK is the ‘ABI’ or Application Blockchain Interface — This is a concept from Ethereum, and it is basically a JSON object with all the information that is needed to interface with a smart contract,” the developer said. “So it would also be possible to share this ABI with other people, and the CashScript SDK has a function to import this ABI and use it to generate a “Contract” object that can be used to send and receive money to this contract.”

Cashscript Is Coming, Bringing Ethereum-Like Smart Contracts to Bitcoin Cash

During the end of the conversation about Cashscript, Bitbox creator Gabriel Cardona joined the discussion. Cardona said a big motivation behind Cashscript was to bolster on-ramping developers from other ecosystems, such as Ethereum. “Since P2SH is BCH’s version of smart contracts we’ve needed a higher level application programming interface (API) for writing Script for a while as writing Script manually is incredibly awkward and error-prone,” Cardona mentioned. The programmer further confided that Kalis leveraged the look and feel of Solidity, hence the API. “[Cashscript] is meant to help talented developers from Bitcoin Cash, Ethereum and other chains create smart contracts with a common workflow and API,” Cardona concluded.

What do you think about the Cashscript language for creating smart contracts on Bitcoin Cash? Let us know what you think about this project in the comments section below.


Image credits: Shutterstock, Twitter, and Pixabay.


Want to create your own secure cold storage paper wallet? Check our tools section. You can also enjoy the easiest way to buy Bitcoin online with us. Download your free Bitcoin wallet and head to our Purchase Bitcoin page where you can buy BCH and BTC securely.

Tags in this story
BCH, Bitbox SDK, bitcoin cash, Bitcoin.com, Cashscript contracts, Coding, Ethereum’s Solidity language, Gabriel Cardona, High-Level Language, N-Technology, Programming, programming language, Rosco Kalis, SDK, Smart Contracts, Spedn, Syntax, tech, Tendo Pein, thesis, workflow, zero confirm
Cashscript Is Coming, Bringing Ethereum-Like Smart Contracts to Bitcoin Cash 2
Jamie Redman

Jamie Redman is a financial tech journalist living in Florida. Redman has been an active member of the cryptocurrency community since 2011. He has a passion for Bitcoin, open source code, and decentralized applications. Redman has written thousands of articles for news.Bitcoin.com about the disruptive protocols emerging today.

Cashscript Is Coming, Bringing Ethereum-Like Smart Contracts to Bitcoin Cash 3
About the author

E-Crypto News was developed to assist all cryptocurrency investors in developing profitable cryptocurrency portfolios through the provision of timely and much-needed information. Investments in cryptocurrency require a level of detail, sensitivity, and accuracy that isn’t required in any other market and as such, we’ve developed our databases to help fill in information gaps.

Related Posts

E-Crypto News Executive Interviews



bitcoin
Bitcoin (BTC) $ 43,515.00
ethereum
Ethereum (ETH) $ 3,058.87
cardano
Cardano (ADA) $ 2.20
tether
Tether (USDT) $ 0.997511
binance-coin
Binance Coin (BNB) $ 370.92
xrp
XRP (XRP) $ 0.971806
solana
Solana (SOL) $ 143.69
polkadot
Polkadot (DOT) $ 30.65
usd-coin
USD Coin (USDC) $ 1.00
dogecoin
Dogecoin (DOGE) $ 0.218578
USD
EUR
GBP
bitcoinBitcoin (BTC)
$ 43,515.00
ethereumEthereum (ETH)
$ 3,058.87
tetherTether (USDT)
$ 0.997511
bitcoin-cashBitcoin Cash (BCH)
$ 534.73
litecoinLitecoin (LTC)
$ 157.70
bitcoinBitcoin (BTC)
37.106,33
ethereumEthereum (ETH)
2.608,37
tetherTether (USDT)
0,850603
bitcoin-cashBitcoin Cash (BCH)
455,98
litecoinLitecoin (LTC)
134,47
bitcoinBitcoin (BTC)
31,785.53
ethereumEthereum (ETH)
2,234.35
tetherTether (USDT)
0.728632
bitcoin-cashBitcoin Cash (BCH)
390.59
litecoinLitecoin (LTC)
115.19

Automated trading with HaasBot Crypto Trading Bots

Crypto Scams

Crypto Scams
Crypto Scams Still Persistent In 2021, SEC Warns About Red Flags To Watch
September 9, 2021
Poly Network
Here’s How Hackers Stole Over $600 million in the Poly Network Attack
August 12, 2021
The World’s Most Infamous Crypto Hacks and Scams
July 31, 2021
Cryptocurrency Exchanges
Cryptocurrency Exchanges and the Plague of Scams and Bans
June 29, 2021
What Role Do Cryptocurrencies Play In The Era Of Ransomware Attacks?
June 9, 2021

Blockchain/Cryptocurrency Questions and Answers

Beginner’s Guide to Investing in Cryptocurrency
August 9, 2021
Short-Sell Cryptocurrency
How to Short-Sell Cryptocurrency: A Brief Overview
July 17, 2021
Klaytn
What Is Klaytn (KLAY) And How Does It Work?
July 16, 2021
Cryptocurrencies
Our Crypto Roundup Interview Asks- Do Cryptocurrencies Have a Future?
July 15, 2021
Solana
What Is Solana (SOL) And How Does It Work?
June 26, 2021


CryptoCurrencyUSDChange 1hChange 24hChange 7d
--- --- --- ---
--- --- --- ---
--- --- --- ---
Tether0.9986 0.03 % 0.08 % 0.23 %
--- --- --- ---
--- --- --- ---
--- --- --- ---
Polkadot30.87 2.19 % 17.29 % 10.73 %
--- --- --- ---
--- --- --- ---

bitcoin
Bitcoin (BTC) $ 43,515.00
ethereum
Ethereum (ETH) $ 3,058.87
cardano
Cardano (ADA) $ 2.20
tether
Tether (USDT) $ 0.997511
binance-coin
Binance Coin (BNB) $ 370.92
xrp
XRP (XRP) $ 0.971806
solana
Solana (SOL) $ 143.69
polkadot
Polkadot (DOT) $ 30.65
usd-coin
USD Coin (USDC) $ 1.00
dogecoin
Dogecoin (DOGE) $ 0.218578