StarkNet overhauls Cairo programming language to drive developer adoption

Published at: Jan. 5, 2023

Ethereum layer-2 scaling platform StarkNet has overhauled its in-house Cairo coding language to make Web3 development accessible to developers.

An announcement shared with Cointelegraph outlined the upgrades to Cairo 1.0, which is touted to emulate characteristics of the popular programming language Rust. The overhaul intends to allow developers with general coding experience to begin building decentralized applications on StarkNet’s Ethereum layer-2 network.

StarkWare co-founder and president Eli Ben-Sasson told Cointelegraph that making layer-2 development more accessible to developers of varying backgrounds was the main reason for Cairo’s revamp:

“Primary drivers were safety and ease of use, and conducting the overhaul presented a terrific opportunity to remove the entry for developers with conventional language backgrounds.”

Technical specifications outlined in the Jan. 5 launch encompass a host of improvements to Cairo’s language. This includes improved syntax and language constructs, a holistic type system, intuitive libraries, optimized code and strong typing by demanding specification of data types.

StarkNet highlights Sierra as the main addition to Cairo’s overhaul, which stands for Safe Intermediate Representation. Sierra acts as a new intermediate representation layer between Cairo 1.0 and Cairo byte code.

As Ben Sasson explained, Sierra is an important aspect of ensuring a permissionless network. The upgrade enables reverted transactions to be included in StarkNet blocks, helping the protocol to avoid adding complex ‘crypto-economic mechanisms.’

Related: StarkNet makes Cairo 1.0 open source in first step toward community control

Ben Sasson said that Sierra will allow StarkNet to ‘inherit the full censorship-resistance of Ethereum’ and mainly protects against Sequencer Denial of Service (DoS) attacks.

As previously reported by Cointelegraph, Ben-Sasson pioneered ZK-STARK cryptography alongside other computer scientists. Zero-Knowledge Scalable Transparent Arguments of Knowledge is a proof system that encrypts and verifies transaction data to provide security, scalability and resistance to quantum computing.

According to StarkNet, Cairo is the fourth most popular smart contract language by total value locked. It is the base of applications that have processed over 300 million transactions, minted 90 million NFTs and facilitated $790 million worth of trades settled on Ethereum.

Tags
Related Posts
Ethereum co-founder Vitalik Buterin shares vision for layer 3 protocols
While Ethereum-based layer-2 solutions have been focused on hyperscaling the network, Ethereum co-founder Vitalik Buterin believes layer 3s will serve a far different purpose — providing “customized functionality.” Buterin shared his thoughts in a Sept. 17 post, providing three “visions” of what layer 3s will be used for in the future. The Ethereum co-founder said a third layer on the blockchain makes sense only if it provides a different function to layer 2s, which have been used mainly to enhance scaling via Zero-Knowledge (ZK) Rollup technology. “A three-layer scaling architecture that consists of stacking the same scaling scheme on top …
Adoption / Sept. 20, 2022
Offchain Labs acquires Ethereum core dev team Prysmatic Labs
One of the core development teams behind the Ethereum (ETH) Merge, Prysmatic Labs, has been acquired by Offchain Labs, the developer of Ethereum layer-2 network Arbitrum. Announced in an Oct. 13 blog post by Offchain Labs, the deal's financial terms were not disclosed, but it was noted Prysmatic Labs chose to join Offchain Labs "for many reasons," but mainly because of the two companies' alignment in their core beliefs. Prysmatic Labs co-founder Raul Jordan said the move will "build a unified team stronger than the sum of its parts." "Merging with Offchain Labs made perfect sense to us as an …
Technology / Oct. 13, 2022
StarkNet makes Cairo 1.0 open source in step toward greater community control
Zero-knowledge (ZK)-Rollup tech company StarkWare has officially open sourced its new programming language compiler, Cairo 1.0, which will soon be supported on Ethereum layer-2 scaling solution StarkNet in Q1 2023. The news was announced by StarkWare — the company behind StarkNet — in a Nov. 25 Twitter post. StarkWare’s rollup technology and recursive proofs offer the potential to compress millions of transactions on L2 into a single transaction on Ethereum, however the project has been criticized for maintaining control over its IP, not least of all by its more open source focused competitor zkSync. StarkWare described open sourcing Cairo as …
Adoption / Nov. 25, 2022
Optimism token falls 40%, prompting calls to bar dumpers from airdrops
Optimism’s freshly launched governance token, OP, has plunged 40% since peaking at $2.10, leading members of the community to discuss baring those who dumped their tokens from future airdrops. Cointelegraph reported on Tuesday that the Ethereum layer-2 scaling solution was overwhelmed with demand for the first OP governance token airdrop, as 5% of the token supply was distributed to around 250,000 eligible users. As per CoinGecko data, the token opened at roughly $1.43 before surging to $2.10, but as more users got their hands on the free airdrop over the day, OP dropped to as low as $1.09 before climbing …
Blockchain / June 2, 2022
Ethereum scaling network Arbitrum set for major upgrade on Aug. 31
Ethereum layer-2 scaling solution Arbitrum is set to undergo one of its most significant upgrades on Wednesday, set to increase transaction throughput, slash transaction fees and simplify cross-chain communication between Arbitrum and Ethereum. Referred to as the “Nitro” upgrade, Arbitrum reconfirmed the date of the upgrade in a Twitter post on Aug. 29, confirming that the upgrade will take effect on Aug. 31 at 10:30 AM Eastern Time, while noting a two to four hours of network downtime period is to be expected. Reminder — Arbitrum One is upgrading to Nitro on Wednesday 8/31. There will be 2-4 hours of …
Adoption / Aug. 30, 2022