Skip to content
/ kona Public

A suite of `no_std` components for the OP Stack state transition function and L2 chain derivation.

License

Notifications You must be signed in to change notification settings

op-rs/kona

Repository files navigation

Kona

The Monorepo for OP Stack Types, Components, and Services built in Rust.

CI Codecov License Book

What's Kona?OverviewMSRVContributingCreditsLicense

What's Kona?

Originally a suite of portable implementations of the OP Stack rollup state transition, Kona has been extended to be the monorepo for OP Stack types, components, and services built in Rust. Kona provides an ecosystem of extensible, low-level crates that compose into components and services required for the OP Stack.

Kona contains many foundational crates including:

Built on top of these libraries, this repository also features a fault proof program designed to deterministically execute the rollup state transition in order to verify an L2 output root from the L1 inputs it was derived from.

The book contains a more in-depth overview of the project, contributor guidelines, tutorials for getting started with building your own programs, and a reference for the libraries and tools provided by Kona.

Important

Ethereum (Alloy) types modified for the OP Stack live in op-alloy.

Alternative Backends

Kona's libraries were built with alternative backend support and extensibility in mind - it is not just a fault proof program! Kona is also used by:

To build your own backend for kona, or build a new application on top of its libraries, see the SDK section of the book.

Development Status

Warning

kona is currently in active development, and is not yet ready for use in production.

Overview

Binaries

Protocol

Proof

External

  • rpc: OP Stack RPC types and extensions.
  • net: OP Stack Networking including P2P and Discovery.

Providers

Utilities

  • serde: Serialization helpers.

MSRV

The current MSRV (minimum supported rust version) is 1.81.

The MSRV is not increased automatically, and will be updated only as part of a patch (pre-1.0) or minor (post-1.0) release.

Contributing

kona is built by open source contributors like you, thank you for improving the project!

A contributing guide is available that sets guidelines for contributing.

Pull requests will not be merged unless CI passes, so please ensure that your contribution follows the linting rules and passes clippy.

Credits

kona is inspired by the work of several teams, namely OP Labs and other contributors' work on the op-program and BadBoiLabs's work on Cannon-rs.

kona is also built on rust types in alloy, op-alloy, and maili.

License

Licensed under the MIT license.

Note

Contributions intentionally submitted for inclusion in these crates by you shall be licensed as above, without any additional terms or conditions.