4

EIP-165 aims to provide a way for a contract to communicate whether it has implemented a certain interface or not. The standard defines the interface identifier as the XOR of all function selectors in the interface.

The 0xffffffff value is marked as an invariably invalid identifier. What is wrong with this number? Can't four leftmost bytes of Keccak-256 hash of the function signature (function selector is described in this way) have such a value?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.