kona-derive

Crates.iokona-derive
lib.rskona-derive
version0.0.2
sourcesrc
created_at2024-02-22 20:38:47.339401
updated_at2024-06-22 23:09:41.680678
descriptionA no_std derivation pipeline implementation for the OP Stack
homepagehttps://github.com/ethereum-optimism/kona
repositoryhttps://github.com/ethereum-optimism/kona
max_upload_size
id1149712
size3,210,401
(clabby)

documentation

README

kona-derive

Notice: This crate is a WIP.

A no_std compatible implementation of the OP Stack's derivation pipeline.

Features

The most up-to-date feature list will be available on the docs.rs Feature Flags tab of the kona-derive crate.

Some features include the following.

  • serde: Serialization and Deserialization support for kona-derive types.
  • k256: secp256k1 public key recovery support.
  • online: Exposes an alloy-provider powered data source using "online" HTTP requests.

By default, kona-derive enables features serde and k256.

Key recovery using the secp256k1 curve sits behind a k256 feature flag so that when compiled in offline mode, secp recovery can fall through to the fpp host, accelerating key recovery. This was necessary since invalid instructions were found when compiling k256 recovery down to a bare-metal MIPS target. Since public key recovery requires elliptic curve pairings, k256 fall-through host recovery should drastically accelerate derivation on the FPVM.

Commit count: 319

cargo fmt