/kzg-py

Primary LanguagePython

kzg-py

Implementation of KZG polynomial commitments in Python. For study purposes only.

The implementation consists of 4 simple APIs:

  • trusted_setup -> generates the trusted setup parameters
  • commit -> generates a KZG commtiment for a polynomial
  • generate_proof -> generates a proof for a polynomial evaluation
  • verify_proof -> verifies a proof for a polynomial evaluation using a pairing check

Resources