An endpoint for verify_kzg_proof
in c-kzg-4844 using bls12_381. Passes all of the verify_kzg_proof
tests in c-kzg-4844/verify_kzg_proof.
Operation | Cycle Count |
---|---|
verify_kzg_proof |
276,957,860 |
load_trusted_setup |
391 |
Checkout the SP1 profile at 0xWOLAND/sp1-revm-kzg-profile. This crate has been used in a fork of SP1's patch of revm
, which passes all tests. Additionally, kzg-rs
is based on this slightly modified fork of bls12_381
. This crate works in [no_std]
mode.
cargo add kzg-rs
And add
kzg-rs = { version = "0.1", default-features = false, features=['cache'] optional = true }
You can rebuild g1.bin
and g2.bin
by running
cargo run --bin build_binaries