Commit ab110eac authored by Adrian Sutton's avatar Adrian Sutton Committed by GitHub

op-program: Don't verify KZG commitments for blobs inside the VM (#9439)

parent 48d63c21
package l1 package l1
import ( import (
"bytes"
"encoding/binary" "encoding/binary"
"fmt" "fmt"
...@@ -114,10 +113,5 @@ func (p *PreimageOracle) GetBlob(ref eth.L1BlockRef, blobHash eth.IndexedBlobHas ...@@ -114,10 +113,5 @@ func (p *PreimageOracle) GetBlob(ref eth.L1BlockRef, blobHash eth.IndexedBlobHas
copy(blob[i<<5:(i+1)<<5], fieldElement[:]) copy(blob[i<<5:(i+1)<<5], fieldElement[:])
} }
blobCommitment, err := blob.ComputeKZGCommitment()
if err != nil || !bytes.Equal(blobCommitment[:], commitment[:]) {
panic(fmt.Errorf("invalid blob commitment: %w", err))
}
return &blob return &blob
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment