crypto/kzg4844: remove ComputeCells

This commit is contained in:
Felix Lange 2025-06-07 11:42:04 +02:00
parent 60aacd2519
commit eb438ecaab
3 changed files with 2 additions and 9 deletions

View file

@ -29,7 +29,7 @@ func TestBlobs(t *testing.T) {
emptyBlob = new(kzg4844.Blob)
emptyBlobCommit, _ = kzg4844.BlobToCommitment(emptyBlob)
emptyBlobProof, _ = kzg4844.ComputeBlobProof(emptyBlob, emptyBlobCommit)
emptyCellProof, _ = kzg4844.ComputeCells(emptyBlob)
emptyCellProof, _ = kzg4844.ComputeCellProofs(emptyBlob)
)
header := types.Header{}
block := types.NewBlock(&header, &types.Body{}, nil, nil)

View file

@ -193,10 +193,3 @@ func CalcBlobHashV1(hasher hash.Hash, commit *Commitment) (vh [32]byte) {
func IsValidVersionedHash(h []byte) bool {
return len(h) == 32 && h[0] == 0x01
}
func ComputeCells(blob *Blob) ([]Proof, error) {
if useCKZG.Load() {
return ckzgComputeCellProofs(blob)
}
return gokzgComputeCellProofs(blob)
}

View file

@ -398,7 +398,7 @@ func (miner *Miner) commitTransactions(env *environment, plainTxs, blobTxs *tran
log.Warn("Encountered Version 0 transaction post-Osaka, recompute proofs", "hash", ltx.Hash)
sidecar.Proofs = make([]kzg4844.Proof, 0)
for _, blob := range sidecar.Blobs {
cellProofs, err := kzg4844.ComputeCells(&blob)
cellProofs, err := kzg4844.ComputeCellProofs(&blob)
if err != nil {
panic(err)
}