Share this article

Algorand and Blockstack Are Building a Multi-Chain Smart Contract Language

Clarity, a new open-source programming language, promises to deliver less-buggy smart contracts.

Updated Apr 10, 2024, 2:04 a.m. Published Jun 10, 2020, 3:00 p.m.
(Credit: Danny Nelson / CoinDesk)
(Credit: Danny Nelson / CoinDesk)

Algorand and Blockstack are collaborating on a new smart contract programming language that moves the two startups toward direct, inter-blockchain communications.

STORY CONTINUES BELOW
Don't miss another story.Subscribe to the Crypto Daybook Americas Newsletter today. See all newsletters

Called Clarity, the project will ultimately allow developers to write smart contracts that execute across their two blockchains – and others that might decide to join the open source initiative – without involving third-party interoperability protocols like Polkadot, executives at both companies told CoinDesk.

The potential for direct inter-chain communications is likely as boundless as the ideas of the developers deploying smart contracts across the two very different platforms. Algorand’s proof-of-stake blockchain often caters to financial use cases, while Blockstack’s upcoming Stacks 2.0 “proof-of-transfer” blockchain looks more broadly at decentralized computing.

“We believe it's a multi-chain world,” said Steve Kokinos, chief executive at Algorand. “People are going to use different chains for different purposes and interoperability is going to be critical.”

Less-buggy smart contracts

Blockstack CEO Muneeb Ali said it was the similarity of his and Algorand’s smart contract design philosophies that brought them together.

“We were already looking at the same properties,” Ali said.

Both are acutely interested in deploying “non-Turing complete” languages. Algorand 2.0’s TEAL smart contract language is non-Turing complete, as is Blockstack’s eponymous Clarity, already planned to debut on Stacks 2.0. Ali estimated the two languages had “80-90%” in common at the outset.

Non-Turing completeness means, in part, that a language’s programs cannot in theory run forever – and that, in practice, means its programs are somewhat more restrictive than ones written in a Turing-complete language.

But non-Turing complete languages are also far less prone to bugs than their computationally complete brethren because of that same property. Their smart contracts don’t need to be manually audited, Ali said.

Read more: Who Will Pay for Turing-Complete Smart Contracts?

“Everything can be precise, everything can be verified,” Ali said, contrasting Clarity with potentially error-prone alternative languages that could put “hundreds of millions of dollars” of smart contract user funds at risk.

The infamous DAO hack is perhaps the best-known example of the potential perils of buggy smart contracts written in a Turing-complete language. That 2016 heist cost users $50 million in ether, all because of a bug.

“The number question for these smart contracts is actually just: Are they precise and secure?’ So the language has to be just focused on that, which is what we have done here,” Ali said.

Kokinos said Clarity provides a “philosophically different approach to smart contracts.”

Clarity will also make for simpler developer experiences, he said. “We’re providing people tools to make it less necessary for them to learn a lot about how the blockchain works and about the underlying parts of the system and just enable people to get their work done.”

More For You

Pudgy Penguins: A New Blueprint for Tokenized Culture

Pudgy Title Image

Pudgy Penguins is building a multi-vertical consumer IP platform — combining phygital products, games, NFTs and PENGU to monetize culture at scale.

What to know:

Pudgy Penguins is emerging as one of the strongest NFT-native brands of this cycle, shifting from speculative “digital luxury goods” into a multi-vertical consumer IP platform. Its strategy is to acquire users through mainstream channels first; toys, retail partnerships and viral media, then onboard them into Web3 through games, NFTs and the PENGU token.

The ecosystem now spans phygital products (> $13M retail sales and >1M units sold), games and experiences (Pudgy Party surpassed 500k downloads in two weeks), and a widely distributed token (airdropped to 6M+ wallets). While the market is currently pricing Pudgy at a premium relative to traditional IP peers, sustained success depends on execution across retail expansion, gaming adoption and deeper token utility.

More For You

Fidelity Investments starts its own stablecoin in a massive bet that future of banking is on blockchain

(Bill Tompkins/Getty Images)

The FIDD token will run on Ethereum, serve institutional and retail users, and comply with the new GENIUS Act’s reserve rules.

What to know:

  • Fidelity Investments is launching its first stablecoin, the Fidelity Digital Dollar (FIDD), based on the Ethereum network.
  • FIDD will be backed by reserves of cash, cash equivalents, and short-term U.S. Treasuries managed by Fidelity, in line with the new federal GENIUS Act's standards for payment stablecoins.
  • The stablecoin targets use cases such as 24/7 institutional settlement and onchain retail payments, putting Fidelity in direct competition with dominant issuers like Circle’s USDC and Tether’s USDT while laying groundwork for future onchain financial products.