Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions encoding/da.go
Original file line number Diff line number Diff line change
Expand Up @@ -815,12 +815,7 @@ func messageQueueV2ApplyL1Message(initialQueueHash common.Hash, message *types.L
}

func messageQueueV2EncodeRollingHash(rollingHash common.Hash) common.Hash {
// clear last 36 bits

// Clear the lower 4 bits of byte 26 (preserving the upper 4 bits)
rollingHash[27] &= 0xF0

// Clear the next 4 bytes (32 bits total)
// clear last 32 bits, i.e. 4 bytes.
rollingHash[28] = 0
rollingHash[29] = 0
rollingHash[30] = 0
Expand Down
Loading