Open-Source: Starknet’s New Sequencer
Published on: January 25, 2023

Open-Source: Starknet’s New Sequencer

TL;DR

  • A new Starknet sequencer is being developed
  • It is open-source under the Apache 2.0 license
  • It’s first goal is to increase Starknet’s throughput

A Shiny New Sequencer

We are happy to announce a new Starknet Sequencer is in the works. As Starknet’s tech stack moves towards open-source, following Cairo 1.0 and Papyrus Full Node, we now continue with Starknet’s new sequencer. It will be open-source, available under Apache 2.0 license, and you can go check out the repo now!

Building a new Sequencer is part of the Starknet Roadmap we presented a few months ago. Implementation of the new sequencer will start with replacement of the Blockifier, the module within the sequencer that performs block execution. As explained in the roadmap, it is expected to deliver benefits for Starknet’s performance.

Our approach to building this sequencer is the same approach that guided us in Starknet Alpha. The sequencer will be implemented in stages, and we are sharing today its first module. Over time, new components of the sequencer will be completed, until eventually a Rust-based sequencer will replace the current Python-based sequencer entirely.

What Does the Sequencer Do?

On Starknet, after users send transactions, the first stop in the transaction’s journey to STARK scaling is the sequencers. In the Starknet protocol, the sequencers are responsible for ordering the transactions and producing blocks. After the block is created by a sequencer, and approved by the consensus protocol, the provers take over and generate a proof for L1.

Open-Sourcing

Starknet Alpha launched on Mainnet in November 2021. From the outset, it was committed to share the power of STARK scaling with the world.

Today, we are releasing the first in a line of modules of the new open-source sequencer. It will take several months for all modules and sub-modules to be deployed. Open sourcing everything will enable community members to contribute to the development, and to audit the codebase.

This will edge StarkNet closer to a point of decentralized permissionless sequencing. We are now designing Starknet’s decentralized protocol and we are encouraging the community to take part in the research and the discussion.

Performance

Starknet’s original sequencer is largely an adaptation of StarkEx infrastructure. Now, there is a need for infrastructure that is built especially for the requirements of a decentralized highly-performant network.

Built in Rust, the new sequencer is designed and developed with performance in mind. The new sequencer also builds on solid foundations: Papyrus, the new Starknet full node, will handle state management, and cairo-rs, the new Cairo-VM by LambdaClass, will speed up the Cairo execution. We expect the new sequencer to improve upon the existing sequencer in every aspect. The throughput and latency of the network is expected to improve dramatically with the integration of this sequencer in Starknet.

We also expect other infrastructure and development tools to be able to use the new sequencer to improve the development experience. Full node performance is expected to improve as well as all the testing frameworks.

Summary

We are excited to announce today the new open-source sequencer. Its first module is already available for the community to review, and will be followed with more modules in the following months to come. We are also happy to take another step in our roadmap for enhancing Starknet’s performance. We aim to make the network more efficient and accessible, and we appreciate the support of everyone who has joined us on this journey.

ON THIS PAGE

Contact us