mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 07:37:20 +00:00
crypto/kzg4844: remove ComputeCells
This commit is contained in:
parent
60aacd2519
commit
eb438ecaab
3 changed files with 2 additions and 9 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue