#pipeline #data-source #derivation #stack #op #online #l2

kona-derive

A no_std derivation pipeline implementation for the OP Stack

3 releases

0.0.3 Sep 4, 2024
0.0.2 Jun 22, 2024
0.0.1 Feb 22, 2024

#4 in #l2

Download history 64/week @ 2024-06-16 185/week @ 2024-06-23 17/week @ 2024-06-30 18/week @ 2024-07-07 29/week @ 2024-07-14 3/week @ 2024-08-11 12/week @ 2024-08-18 1/week @ 2024-08-25 143/week @ 2024-09-01 10/week @ 2024-09-08 39/week @ 2024-09-15 28/week @ 2024-09-22 38/week @ 2024-09-29

126 downloads per month
Used in kona-plasma

MIT license

1.5MB
11K SLoC

kona-derive

CI Kona Derive License

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.

Dependencies

~18–34MB
~716K SLoC