crypto/kzg4844: comments

This commit is contained in:
healthykim 2026-04-20 12:07:51 +02:00
parent 14c0f1d507
commit 04a6c861d8

View file

@ -191,6 +191,7 @@ func ckzgVerifyCellProofBatch(blobs []Blob, commitments []Commitment, cellProofs
return nil
}
// ckzgVerifyCells verifies that the cell data corresponds to the provided commitments.
func ckzgVerifyCells(cells []Cell, commitments []Commitment, cellProofs []Proof, cellIndices []uint64) error {
ckzgIniter.Do(ckzgInit)
var (
@ -227,6 +228,7 @@ func ckzgVerifyCells(cells []Cell, commitments []Commitment, cellProofs []Proof,
return nil
}
// ckzgComputeCells computes cells from blobs.
func ckzgComputeCells(blobs []Blob) ([]Cell, error) {
ckzgIniter.Do(ckzgInit)
cells := make([]Cell, 0, ckzg4844.CellsPerExtBlob*len(blobs))
@ -243,6 +245,7 @@ func ckzgComputeCells(blobs []Blob) ([]Cell, error) {
return cells, nil
}
// ckzgRecoverBlobs recovers blobs from cells and cell indices.
func ckzgRecoverBlobs(cells []Cell, cellIndices []uint64) ([]Blob, error) {
ckzgIniter.Do(ckzgInit)