Skip to content

Commit

Permalink
overload preimage oracle to use SHA256 hashes for EigenDA preimage types
Browse files Browse the repository at this point in the history
  • Loading branch information
epociask committed Jun 5, 2024
1 parent 28935e5 commit 0baede6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions das/eigenda/eigenda.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@ func RecoverPayloadFromEigenDABatch(ctx context.Context,
log.Info("Start recovering payload from eigenda: ", "data", hex.EncodeToString(sequencerMsg))
var shaPreimages map[common.Hash][]byte
if preimages != nil {
if preimages[arbutil.EigenDaPreimageType] == nil {
preimages[arbutil.EigenDaPreimageType] = make(map[common.Hash][]byte)
if preimages[arbutil.Sha2_256PreimageType] == nil {
preimages[arbutil.Sha2_256PreimageType] = make(map[common.Hash][]byte)
}
shaPreimages = preimages[arbutil.EigenDaPreimageType]
shaPreimages = preimages[arbutil.Sha2_256PreimageType]
}
var daRef EigenDARef
daRef.BlobIndex = binary.BigEndian.Uint32(sequencerMsg[:4])
Expand Down

0 comments on commit 0baede6

Please sign in to comment.