This page is a placeholder. All examples on this page are currently AI-generated and are not correct. This documentation will be completed in the future with accurate, tested examples.
KZG Commitments
Convert 128 KB blobs into succinct 48-byte commitments using polynomial commitments.
Overview
KZG commitments represent a blob as a polynomial commitment on the BLS12-381 curve. The commitment is binding (cannot change blob after commitment) and enables efficient verification.
API
Benefits: Tree-shakeable, testable with mock c-kzg implementations
Size: 131,072 bytes (128 KB exactly)
Structure: 4,096 field elements × 32 bytes
Constraint: Each field element must have top byte = 0 (< BLS12-381 modulus)
Error Handling