Skip to content

Commit

Permalink
Merge pull request ethereum#61 from kevaundray/kw/specs-3093
Browse files Browse the repository at this point in the history
  • Loading branch information
kevaundray authored Nov 30, 2022
2 parents 786c595 + fdeb627 commit e4ed254
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions core/types/data_blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,11 @@ func (blobs Blobs) ComputeCommitmentsAndAggregatedProof() (commitments []KZGComm
versionedHashes[i] = common.Hash(eth.KZGToVersionedHash(c))
}

var kzgProof KZGProof
if len(blobs) != 0 {
proof, err := eth.ComputeAggregateKZGProof(blobs)
if err != nil {
return nil, nil, KZGProof{}, err
}
kzgProof = KZGProof(proof)
proof, err := eth.ComputeAggregateKZGProof(blobs)
if err != nil {
return nil, nil, KZGProof{}, err
}
var kzgProof = KZGProof(proof)

return commitments, versionedHashes, kzgProof, nil
}
Expand Down

0 comments on commit e4ed254

Please sign in to comment.