- Notifications
You must be signed in to change notification settings - Fork0
Monorepo for OP Stack Types, Components, and Services built in Rust.
License
SkandaBhat/kona
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
The Monorepo forOP Stack Types, Components, and Services built in Rust.
What's Kona? •Overview •MSRV •Contributing •Credits •License
Originally a suite of portable implementations of the OP Stack rollup state transition,Kona has been extended to bethe monorepo forOP Stacktypes, components, and services built in Rust. Kona provides an ecosystem of extensible, low-levelcrates that compose into components and services required for the OP Stack.
Kona contains many foundational crates including:
- Thederivation pipeline.
- A stateless block executor.
Built on top of these libraries, this repository also features afault proof programdesigned to deterministically execute the rollup state transition in order to verify anL2 output root from the L1 inputs it wasderived from.
Thebook contains a more in-depth overview of the project, contributor guidelines, tutorials forgetting 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 inop-alloy.
Kona's libraries were built with alternative backend support and extensibility in mind - it is not just a fault proofprogram! Kona is also used by:
To build your own backend for kona, or build a new application on top of its libraries,see theSDK section of the book.
Warning
kona
is currently in active development, and is not yet ready for use in production.
Binaries
client
: The bare-metal program that runs on top of afault proof VM.host
: The host program that runs natively alongside the FPVM, serving as thePreimage Oracle server.
Protocol
genesis
: Genesis types for OP Stack chains.protocol
: Core protocol types used across OP Stack rust crates.derive
:no_std
compatible implementation of thederivation pipeline.driver
: Stateful derivation pipeline driver.interop
: Core functionality and primitives for theInterop feature of the OP Stack.registry
: Rust bindings for thesuperchain-registry.
Proof
mpt
: Utilities for interacting with the Merkle Patricia Trie in the client program.executor
:no_std
stateless block executor for theOP Stack.kona-proof
: High level OP Stack state transition proof SDK.kona-proof-interop
: Extension ofkona-proof
with interop support.preimage
: High level interfaces to thePreimageOracle
ABI.std-fpvm
: Platform specificFault Proof VM kernel APIs.std-fpvm-proc
: Proc macro forFault Proof Program entrypoints.
External
Providers
providers-alloy
: Provider implementations forkona-derive
backed byAlloy.providers-local
: Local provider implementations forkona-derive
.
Utilities
serde
: Serialization helpers.
The current MSRV (minimum supported rust version) is1.82
.
The MSRV is not increased automatically, and will be updatedonly as part of a patch (pre-1.0) or minor (post-1.0) release.
kona
releases are done using thecargo-release
crate.A detailed guide is available in./RELEASES.md.
kona
is built by open source contributors like you, thank you for improving the project!
Acontributing guide is available that sets guidelines for contributing.
Pull requests will not be merged unless CI passes, so please ensure that your contributionfollows the linting rules and passes clippy.
kona
is inspired by the work of several teams, namelyOP Labs and other contributors' work on theop-program
andBadBoiLabs's work onCannon-rs.
kona
is also built on rust types inalloy,op-alloy, andmaili.
Licensed under theMIT license.
Note
Contributions intentionally submitted for inclusion in these crates by youshall be licensed as above, without any additional terms or conditions.