Skip to content

Commit eb438ec

Browse files
committed
crypto/kzg4844: remove ComputeCells
1 parent 60aacd2 commit eb438ec

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

beacon/engine/types_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func TestBlobs(t *testing.T) {
2929
emptyBlob = new(kzg4844.Blob)
3030
emptyBlobCommit, _ = kzg4844.BlobToCommitment(emptyBlob)
3131
emptyBlobProof, _ = kzg4844.ComputeBlobProof(emptyBlob, emptyBlobCommit)
32-
emptyCellProof, _ = kzg4844.ComputeCells(emptyBlob)
32+
emptyCellProof, _ = kzg4844.ComputeCellProofs(emptyBlob)
3333
)
3434
header := types.Header{}
3535
block := types.NewBlock(&header, &types.Body{}, nil, nil)

crypto/kzg4844/kzg4844.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,3 @@ func CalcBlobHashV1(hasher hash.Hash, commit *Commitment) (vh [32]byte) {
193193
func IsValidVersionedHash(h []byte) bool {
194194
return len(h) == 32 && h[0] == 0x01
195195
}
196-
197-
func ComputeCells(blob *Blob) ([]Proof, error) {
198-
if useCKZG.Load() {
199-
return ckzgComputeCellProofs(blob)
200-
}
201-
return gokzgComputeCellProofs(blob)
202-
}

miner/worker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ func (miner *Miner) commitTransactions(env *environment, plainTxs, blobTxs *tran
398398
log.Warn("Encountered Version 0 transaction post-Osaka, recompute proofs", "hash", ltx.Hash)
399399
sidecar.Proofs = make([]kzg4844.Proof, 0)
400400
for _, blob := range sidecar.Blobs {
401-
cellProofs, err := kzg4844.ComputeCells(&blob)
401+
cellProofs, err := kzg4844.ComputeCellProofs(&blob)
402402
if err != nil {
403403
panic(err)
404404
}

0 commit comments

Comments
 (0)