Minimal 4844 version of c-kzg
Go to file
Justin Traglia eb17071bf3
Add some tests for reverse_bits (#105)
2023-01-31 15:51:35 +00:00
.github/workflows Add ckzg C tests workflow (#98) 2023-01-30 16:37:04 +00:00
bindings Add compute_kzg_proof to java bindings (#94) 2023-01-27 15:16:41 +00:00
blst@ca03e11a3f Upgrade blst & remove sha256 patch (#85) 2023-01-25 20:07:15 +00:00
inc Use BYTES_PER_FIELD_ELEMENT 2022-11-04 11:44:57 -07:00
lib Insert lib/ directory and update Readme 2021-02-02 11:36:36 +00:00
src Add some tests for reverse_bits (#105) 2023-01-31 15:51:35 +00:00
.gitignore Add a basic unittest framework + a compute KZG proof test (#96) 2023-01-30 13:40:12 +00:00
.gitmodules Upgrade blst & remove sha256 patch (#85) 2023-01-25 20:07:15 +00:00
LICENSE Initial commit 2021-02-01 20:15:45 +00:00
README.md Expose `compute_kzg_proof` (#80) 2023-01-24 18:23:42 +00:00
go.mod Move go.mod & go.sum to repo root (#88) 2023-01-26 22:42:56 +00:00
go.sum Move go.mod & go.sum to repo root (#88) 2023-01-26 22:42:56 +00:00

README.md

C-KZG-4844: A minimal library for EIP-4844 Polynomial Commitments

This is a copy of C-KZG stripped-down to support the Polynomial Commitments API:

  • blob_to_kzg_commitment
  • compute_kzg_proof
  • compute_aggregate_kzg_proof
  • verify_kzg_proof
  • verify_aggregate_kzg_proof

We also provide functions for loading/freeing the trusted setup:

  • load_trusted_setup
  • load_trusted_setup_file
  • free_trusted_setup

Installation

Initialize the blst submodule:

git submodule update --init

Build blst:

cd src
make blst

Build the C-KZG code:

cd src
make