Skip to content

Commit 21a80cb

Browse files
authored
Merge pull request #577 from OffchainLabs/fix-simulated-beacon-fork-osaka-blobs
eth/catalyst: Remove KZG proof verification from SimulatedBeacon.GetBlobs
2 parents 7e795e5 + 339b719 commit 21a80cb

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

eth/catalyst/simulated_beacon_blob_provider.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,6 @@ func (c *SimulatedBeacon) GetBlobs(ctx context.Context, batchBlockHash common.Ha
5353
}
5454

5555
copy(output[outputIdx][:], bundle.Blobs[i])
56-
57-
var proof kzg4844.Proof
58-
copy(proof[:], bundle.Proofs[i])
59-
60-
if err := kzg4844.VerifyBlobProof(&output[outputIdx], commitment, proof); err != nil {
61-
return nil, fmt.Errorf("failed to verify blob proof for blob index(%d), blob(%s)", i, firstFewChars(bundle.Blobs[i].String()))
62-
}
6356
}
6457

6558
for i, found := range outputsFound {
@@ -82,11 +75,3 @@ func commitmentToVersionedHash(commitment kzg4844.Commitment) common.Hash {
8275
hash[0] = 1
8376
return hash
8477
}
85-
86-
func firstFewChars(s string) string {
87-
if len(s) < 9 {
88-
return fmt.Sprintf("\"%s\"", s)
89-
} else {
90-
return fmt.Sprintf("\"%s...\"", s[:8])
91-
}
92-
}

0 commit comments

Comments
 (0)