diff --git a/crypto/kzg4844/kzg4844.go b/crypto/kzg4844/kzg4844.go index 70593787dd..0a2478cea0 100644 --- a/crypto/kzg4844/kzg4844.go +++ b/crypto/kzg4844/kzg4844.go @@ -149,15 +149,15 @@ func VerifyBlobProof(blob *Blob, commitment Commitment, proof Proof) error { return gokzgVerifyBlobProof(blob, commitment, proof) } -// ComputeCells returns the KZG cell proofs that are used to verify the blob against +// ComputeCellProofs returns the KZG cell proofs that are used to verify the blob against // the commitment. // // This method does not verify that the commitment is correct with respect to blob. -func ComputeCells(blob *Blob) ([]Proof, error) { +func ComputeCellProofs(blob *Blob) ([]Proof, error) { if useCKZG.Load() { - return ckzgComputeCells(blob) + return ckzgComputeCellProofs(blob) } - return gokzgComputeCells(blob) + return gokzgComputeCellProofs(blob) } // CalcBlobHashV1 calculates the 'versioned blob hash' of a commitment. diff --git a/crypto/kzg4844/kzg4844_ckzg_cgo.go b/crypto/kzg4844/kzg4844_ckzg_cgo.go index 23bf46f28b..49a7046fe0 100644 --- a/crypto/kzg4844/kzg4844_ckzg_cgo.go +++ b/crypto/kzg4844/kzg4844_ckzg_cgo.go @@ -132,11 +132,11 @@ func ckzgVerifyBlobProof(blob *Blob, commitment Commitment, proof Proof) error { return nil } -// ckzgComputeCells returns the KZG cell proofs that are used to verify the blob against +// ckzgComputeCellProofs returns the KZG cell proofs that are used to verify the blob against // the commitment. // // This method does not verify that the commitment is correct with respect to blob. -func ckzgComputeCells(blob *Blob) ([]Proof, error) { +func ckzgComputeCellProofs(blob *Blob) ([]Proof, error) { ckzgIniter.Do(ckzgInit) _, proofs, err := ckzg4844.ComputeCellsAndKZGProofs((*ckzg4844.Blob)(blob)) diff --git a/crypto/kzg4844/kzg4844_ckzg_nocgo.go b/crypto/kzg4844/kzg4844_ckzg_nocgo.go index c95b3a0e1e..6f4bd3b823 100644 --- a/crypto/kzg4844/kzg4844_ckzg_nocgo.go +++ b/crypto/kzg4844/kzg4844_ckzg_nocgo.go @@ -61,10 +61,10 @@ func ckzgVerifyBlobProof(blob *Blob, commitment Commitment, proof Proof) error { panic("unsupported platform") } -// ckzgComputeCells returns the KZG cell proofs that are used to verify the blob against +// ckzgComputeCellProofs returns the KZG cell proofs that are used to verify the blob against // the commitment. // // This method does not verify that the commitment is correct with respect to blob. -func ckzgComputeCells(blob *Blob) ([]Proof, error) { +func ckzgComputeCellProofs(blob *Blob) ([]Proof, error) { panic("unsupported platform") } diff --git a/crypto/kzg4844/kzg4844_gokzg.go b/crypto/kzg4844/kzg4844_gokzg.go index a5b99463fb..46a38a8913 100644 --- a/crypto/kzg4844/kzg4844_gokzg.go +++ b/crypto/kzg4844/kzg4844_gokzg.go @@ -97,11 +97,11 @@ func gokzgVerifyBlobProof(blob *Blob, commitment Commitment, proof Proof) error return context.VerifyBlobKZGProof((*gokzg4844.Blob)(blob), (gokzg4844.KZGCommitment)(commitment), (gokzg4844.KZGProof)(proof)) } -// gokzgComputeCells returns the KZG cell proofs that are used to verify the blob against +// gokzgComputeCellProofs returns the KZG cell proofs that are used to verify the blob against // the commitment. // // This method does not verify that the commitment is correct with respect to blob. -func gokzgComputeCells(blob *Blob) ([]Proof, error) { +func gokzgComputeCellProofs(blob *Blob) ([]Proof, error) { gokzgIniter.Do(gokzgInit) _, proofs, err := context.ComputeCellsAndKZGProofs((*gokzg4844.Blob)(blob), 0)