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

7,892 USD
-1.59%

ETH

248.53 USD
-2.05%

BCH

404.90 USD
-0.99%

Related news

Ripple XRP Stablecoin, Price Manipulation, Hard Fork Bill, FDIC Bitcoin & Crypto Not A Priority

Support Me On Patreon! https://www.patreon.com/TheModernInvestor ---------------------------------------------------------------------------- Protect And Store Your Crypto With A Ledger Nano: https://www.ledger.com?r=8af3ed38d3b7 ----------------------------------------------------------------------------- Buy Bitcoin And Ethereum With Fiat On Binance! https://www.binance.je/?ref=35009618 ----------------------------------------------------------------------------- Open An Account With Binance! https://www.binance.com/?ref=22170588 ------------------------------------------------------------------------------ Bitcoin Donations Address: 1BYhrLpntMYW97sd8K6fquTcr5MYwPAe2y Ripple (XRP) Donation Address: rsoKR5VHJx84oMTYbS7tWg7g5aFebYirVi Ethereum / KIN / OmiseGo Donation Address: 0x0e5f5CEFaA9A0713AB6D8F79E6679E22d86C21f6 -------------------------------------------------------------------------------- Follow Me On Facebook ! https://www.facebook.com/TheModernInvestor https://www.youtube.com/channel/UC-5HLi3buMzdxjdTdic3Aig Follow Me On Twitter: https://twitter.com/ModernInvest ---------------------------------------------------------------------------------- Very Special Thanks To My Patreon Supporters: Chris Charles Roman Geber David Chosrova Stuart Niven Larry Gooch Tyler Winklevoss NBKrypto Steven Harper Ulf Fatman Josefsson Mohammad Tabbaa Brian Vaci Jeffrey Pete Mozar Cryptocurrency Logic Jonathan Robert Kraus Josh Gorcyca K9 Ytrup Crypto Jedi Truls Lee 3000 O. Tom Chhuong Kaneko Tomonori Sir Thomas11_11 Mike McCarty Crypto And Beer Shipmate ZEN Lunacy ---------------------------------------------------------------------------------- Photo Credit To: https://ripplecoinnews.com/wp-content/uploads/2018/01/ripple-xrp-btc.jpg
The Modern Investor

JP Morgan: Big banks stand corrected as Bitcoin rally past intrinsic value; admits current surge mirrors 2017 rise

Big banks are riding a FOMO wave as the Bitcoin bull-run is just beginning. Spearheaded by the changing colors of JP Morgan, which recently forayed into the digital assets world, the banking elite is now suggesting that their initial stance on Bitcoin and the larger cryptocurrency world might have been off. A recent chart by JP Morgan shows the current BTC price veer upwards chiding the “intrinsic value” the big bank placed on the virtual currency. Based on the article by Bloomberg, the price of the coin would reverse towards the end of December 2018 and then make marginal gains until May 2019, all under the $5,000 mark. In reality, the BTC price, after dropping to “rock bottom” at just above $3,100 in early December 2018, edged upwards. Several spurts of growth were seen in early January and February, prior to a massive April ascendance. On April 2, Bitcoin did away with the bank’s value mode and amassed a daily gain of over 15 percent, fuelling its current rise. Breaking the $5,000 ceiling in the process, which was pegged to remain intact well into May 2019, the king coin is now almost $3,000 ahead of the mark and is not looking to stop. Source: Bloomberg It should be noted that JP Morgan’s “intrinsic value” is calculated on the basis of the marginal cost of production, electricity prices, and hash rates. This model does not take into account, at least on absolute terms, the anticipatory effect of the 2020 halving, which, according to a slew of analysts is the behind the price rise. Nikolaos Panigirtzoglou, the MD in the Global Market Strategy team at JP Morgan stated that Bitcoin breaking through its “intrinsic value” showed signs of mirroring its 2017 bull run. He evidenced this move by comparing the pre-December 2017 slump to the one seen prior to the current bullish swing. The analyst added: “Over the past few days, the actual price has moved sharply over marginal cost. This divergence between actual and intrinsic values carries some echoes of the spike higher in late 2017, and at the time this divergence was resolved mostly by a reduction in actual prices.” With the analyst admitting that the imparting of an “intrinsic or fair value” to a cryptocurrency, much less a volatile one like Bitcoin, is a “challenging” ordeal, a mere JP Morgan acknowledgement of a Bitcoin bull-run is a remarkable sign for the digital assets industry, especially given the bank’s and its CEO Jamie Dimon’s Bitcoin-bashing in the past. Mati Greenspan, senior market analyst at eToro attested to the same, adding a key point that JP Morgan failed to take into account in their calculation. He stated: “Great to see JPM finally admitting that Bitcoin has intrinsic value. Now wait till they understand that miners who run a surplus tend to begin hording.” Despite Bitcoin slumping at press time, recording a 1.23 percent decline against the dollar, the prospects look positive. After recording a massive gain on 19 May, briefly surging past $8,000 for the second time in a week, Bitcoin created a High-Low [HL] at $7,100, which many analysts look at with glee. This HL immediately following last week’s pull-back caused due to post-Consensus bears, a Bitstamp sell-order and market correction showed the king coin’s bullish persistence and can even be a foundation for a $9,000 ascendance, defying any “intrinsic value” expectations. The post JP Morgan: Big banks stand corrected as Bitcoin rally past intrinsic value; admits current surge mirrors 2017 rise appeared first on AMBCrypto.
AMBCrypto

Hot news

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