File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
rolling-shutter/keyperimpl/gnosis Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -314,12 +314,12 @@ func transactionSubmittedEventToIdentityPreimage(
314
314
}
315
315
316
316
func makeSlotIdentityPreimage (slot uint64 ) identitypreimage.IdentityPreimage {
317
- // 32 bytes of zeros plus the block number as big endian (ie starting with lots of zeros as well)
318
- // this ensures the block identity preimage is always alphanumerically before any transaction
319
- // identity preimages.
317
+ // 32 bytes of zeros plus the block number as 20 byte big endian (ie starting with lots of
318
+ // zeros as well). This ensures the block identity preimage is always alphanumerically before
319
+ // any transaction identity preimages, because sender addresses cannot be that small .
320
320
var buf bytes.Buffer
321
321
buf .Write (common .BigToHash (common .Big0 ).Bytes ())
322
- buf .Write (common .BigToHash (new (big.Int ).SetUint64 (slot )).Bytes ())
322
+ buf .Write (common .BigToHash (new (big.Int ).SetUint64 (slot )).Bytes ()[ 12 :] )
323
323
324
324
return identitypreimage .IdentityPreimage (buf .Bytes ())
325
325
}
You can’t perform that action at this time.
0 commit comments