22 releases (9 breaking)

new 0.10.0 Apr 16, 2025
0.9.0 Mar 5, 2025
0.8.0 Jan 20, 2025
0.7.0 Dec 16, 2024
0.1.0-rc.4 Jul 24, 2024

#13 in #bft

Download history 410/week @ 2024-12-25 1591/week @ 2025-01-01 3299/week @ 2025-01-08 3057/week @ 2025-01-15 2032/week @ 2025-01-22 1362/week @ 2025-01-29 2527/week @ 2025-02-05 2128/week @ 2025-02-12 1933/week @ 2025-02-19 2705/week @ 2025-02-26 3475/week @ 2025-03-05 3203/week @ 2025-03-12 3501/week @ 2025-03-19 2689/week @ 2025-03-26 2563/week @ 2025-04-02 2582/week @ 2025-04-09

12,172 downloads per month
Used in 5 crates (3 directly)

MIT/Apache

1MB
27K SLoC

zkSync Era Consensus Layer

This repo implements the consensus algorithm for the era blockchain. We implement all the necessary components for a set of sequencers to reach consensus over blocks (which right now are represented just as binary blobs). In the future, this codebase will also be capable of running full nodes and, after we integrate with the rest of the server, of reaching consensus over real blocks.

Knowledge Index

The following questions will be answered by the following resources:

Question Resource
What is the logical project structure and architecture? architecture.md
How can I run the project? launch.md
What is the style guide to contribute to this repo? style.md

Policies

License

zkSync Era is distributed under the terms of either

at your option.


lib.rs:

This crate contains the consensus component, which is responsible for handling the logic that allows us to reach agreement on blocks. It uses a new cosnensus algorithm developed at Matter Labs, called ChonkyBFT. You can find the specification of the algorithm here.

Dependencies

~31–44MB
~858K SLoC