3 releases
0.0.3 | Sep 4, 2024 |
---|---|
0.0.2 | Jun 22, 2024 |
0.0.1 | Feb 22, 2024 |
#4 in #l2
126 downloads per month
Used in kona-plasma
1.5MB
11K
SLoC
kona-derive
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 forkona-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