This library offers a set of functions for generating and interacting with bn254 KZG commitments and proofs in rust, with the motivation of supporting fraud and validity proof logic in EigenDA rollup integrations.
- Follow the setup instructions to download the G1 and G2 powers of 2 points from the Operator Setup Guide
- Specify the files in
kzg.setup()
function, leave theg2_points
empty, and specify thesrs_order
per the guide. - Note that this is process will take a few minutes to load since it is a bit intensive.
See the test_compute_kzg_proof
function in ./tests/kzg_test.rs for an end to end usage of the library.
Also make sure to check out the examples in our docs.
- To test, please download the provided G1 and G2 points from DA Resources,
- Specify these files in the
kzg.setup()
function, leave theg2_power_of2_path
empty, and specifysrs_order
to be 3000.
This code is unaudited and under construction. This is experimental software and is provided on an "as is" and "as available" basis and may not work at all. It should not be used in production.