highnet / solidity-method-id-collisions

Finds method id collissions by permutating the alphabet in opposing directions and halting when the bytes4 of the keccak256 hash of the names are equal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Solidity Method Id Collisions

Finds method id collissions by permutating the alphabet in opposing directions and halting when the bytes4 of the keccak256 hash of the names are equal.

Not exactly useful since contracts with colliding method ids dont compile, but a fun experiment nevertheless.

Took about a day to find collision: d() and mbrysd()

About

Finds method id collissions by permutating the alphabet in opposing directions and halting when the bytes4 of the keccak256 hash of the names are equal


Languages

Language:Rust 100.0%