Spedn: Smart Contracts in Bitcoin Cash

Spedn: Smart Contracts in Bitcoin Cash

Today an anonymous developer announced Spedn, a new contract-oriented language for Bitcoin Cash

While Spedn shares some similarities with Ivy, a smart-contract language developed by Chain for Bitcoin, it supports additional functionalities such as local variables, if/else statements and BCH opcodes that were brought back in May ’18

Smart contracts in Bitcoin Cash?

Before you may or may not get too excited about smart contracts for Bitcoin Cash, let’s make a quick reality check and understand what smart contracts really are because they often sound ‘too smart’ for what they are actually are.

A smart contract on Ethereum is an address that has some code associated with it. You can think of a smart contract as a program, a combination of persistent scripts, or a set of instructions for the Ethereum Virtual Machine. For example, we can use Solidity programming language to write a smart contract that will send 2 ETH to Alice’s address if the contract has 3 ETH. So when we send 3 ETH to our contract, it passes instructions to the EVM and the machine takes 2 ETH from the contract and sends them to Alice. This smart contract is possible because Solidity is Turing-complete, meaning it can express all kinds of logical or arithmetic operations and therefore supports commands like if statements.

Bitcoin also has a language called Script. In a way, Bitcoin addresses are primitive smart contracts that lock your unspent transaction outputs. Script is way less powerful than Solidity and does not support if statements or any other commands that regular programming languages do. However, it was specifically designed so for security reasons and you can still write simple contracts for Bitcoin, as Script can check signatures, calculate hashes and make timelocks. Exchanges use Script to create multi-signature Bitcoin addresses.

So what does Spedn do?

Announced in a today’s post on Medium, Spedn is a new smart-contract language developed by an anonymous developer under the name Tendo Pein. Spedn can be used to write programs for Bitcoin Cash, which can then give instructions to the Bitcoin Cash ‘virtual machine’. By virtual machine, I mean the piece of the Bitcoin Cash protocol responsible for executing Script programs. Spedn supports functionalities such as:

  • if/else statements — control the flow of the program by stating conditions;
  • local variables — temporarily store values;
  • BCH opcodes — are basic operations that were removed from Bitcoin long ago for security purposes but some of them were brought back in May in Bitcoin Cash.

All of the above are not available in Ivy, a similar smart-contract language developed by Chain for Bitcoin.

For now, it is too early to say whether Spedn will gain any popularity but you can already learn the documentation.

BTC

3,581 USD
0.06%

ETH

117.53 USD
-0.22%

BCH

122.59 USD
-0.29%

Related news

Binance Chief CZ: Bitcoin (BTC) Is Oversold, Crypto Still Growing

Bitcoin (BTC) Is Oversold  The most-anticipated crypto-centric event of early-2018, the Binance Blockchain Week in Bitcoin capital Singapore, has arrived, and this nascent community is buzzing. As the event is a Binance-led initiative, the upstart’s C-suiters and foremost executives have made appearances at the conference, coupled with the subsequent hackathon. While talks from Wei Zhou, Binance’s chief financial officer, and his peers were appreciated, Changpeng “CZ” Zhao himself sat down on the conference stage to give a keynote. And as normal, Zhao, one of the crypto sector’s golden children, did his best to prove why this industry is still popping, so to speak. According to an exclusive from Micky, an up-and-coming crypto media outlet, Zhao, formerly an executive at OkEX and Blockchain.com, reminisced about 2017’s monumental rally, coupled with the subsequent collapse. Echoing sentiment touted by his fellow industry executives, the Binance chief executive noted that late-2017 saw the Bitcoin (BTC) market “overshoot” itself, with asset valuations quickly becoming well-overextended. He quipped that much of the bull sentiment could be chalked up to the abundance of hype, touching on the FOMO that consumers experienced, along with the mass of questionable projects. Murad Mahmudov, a Princeton graduate with ambitions to launch a crypto-focused hedge fund, recently touched on this subject matter. Speaking with Tone Vays, a former institutional investor turned Bitcoin diehard, Mahmudov took Zhao’s comments one step further, noting that a majority of altcoins, including Ethereum, EOS, XRP, were overvalued in 2017’s parabolic surge. Mahmudov’s remarks aside, Zhao purportedly went on to say that cryptocurrencies are currently dramatically oversold, and could be in for an eventual recovery. Speaking in a keynote, the industry insider explained that the current bear market has been “overshot,” indicating that he believes assets have fallen too far from their peaks. Backing his claim, CZ, a former Bloomberg employee, noted that there’s more talent in this industry than ever before, adding that the growing number of bonafide conferences and blockchain events is comforting. Likely referring the array of truly innovative blockchain projects coming to life, along with forays from Wall Street and household names, Zhao then added that “the builders are building, [so] we are seeing a lot more development in this space.” And with all that in mind, Zhao came to the conclusion: So I actually think that we’re probably overshooting on the lower side, but again I could be wrong, this is mass technology. However, many aren’t in agreement with Zhao’s statement on the broader market. Per previous reports from Ethereum World News, Mahmudov recently stated that if history rhymes, BTC could fall to as low as $1,700 before another jaw-dropping run. “I Can Go Weeks Without Looking At Crypto Prices” While the Binance head had remarks about the value of cryptocurrencies, he went on to stress that his sole focus isn’t on markets, but rather, this industry’s underlying fabric. He claimed that he’s “very comfortable” with not checking Coin Market Cap or similar sites, even adding that he has and may continue to “go on for weeks without looking at the [Bitcoin] price.” Zhao attributed his disconnected attitude towards wherewithals to Binance’s “focus on building,” and visions that this sector will swell over time. Title Image Courtesy of Marco Verch Via Flickr The post Binance Chief CZ: Bitcoin (BTC) Is Oversold, Crypto Still Growing appeared first on Ethereum World News.
Ethereum World News

Bitcoin (BTC) Price Analysis: Will This Wedge Support Hold?

Bitcoin has formed lower highs and slightly lower lows to create a falling wedge formation on its 4-hour time frame. Support is holding for now but it looks like bears are trying to go for a break lower. The 100 SMA is below the longer-term 200 SMA to confirm that the path of least resistance is to the downside. In other words, the selloff is more likely to resume than to reverse. Also, the gap between the moving averages is widening to reflect stronger selling pressure. Price is below both moving averages to signal the presence of selling pressure also. RSI already dipped to the oversold region to signal exhaustion among sellers and appears to be pulling back up to indicate that buyers might return. In that case, bitcoin could still bounce off support and test the top of the wedge at the $3,800 area again. This lines up with the 200 SMA dynamic inflection point to add to its strength as a ceiling. Stochastic has just reached the oversold region to reflect slower selling pressure and might also be due to turn higher soon. A shallow bullish divergence can be seen as price made lower lows while the oscillator had slightly higher lows since mid-January. Still, a break below support could spur a slide that’s the same size as the wedge formation. This spans $3,600 to around $4,400 so the resulting downtrend could last by at least $800. Similarly a break above the wedge top could spur a rally of the same height. Bitcoin has had a rough couple of weeks as traders appeared to turn their optimism down a notch. As it is, the industry has yet to report positive developments that could sustain the rallies from the start of the year, but the lack of bullish interest despite upside breakouts suggests caution. The post Bitcoin (BTC) Price Analysis: Will This Wedge Support Hold? appeared first on Ethereum World News.
Ethereum World News

Hot news

By continuing to browse, you agree to the use of cookies. Read Privacy Policy to know more or withdraw your consent.