protocol-substrate icon indicating copy to clipboard operation
protocol-substrate copied to clipboard

[TASK] Remove `truncate_and_pad`

Open lazovicff opened this issue 2 years ago • 0 comments

Since we are using AccountId([u8; 32]) as out account ids, we should not use truncate_and_pad which will replace last 12 bytes with zeros, leaving for potential to collisions, which can be exploited by the relayer.

lazovicff avatar Mar 20 '22 14:03 lazovicff