I am reading an article, it says:
To enable deployment on the Ethereum platform, the contract functions are compiled into EVM bytecode and a piece of code called function selector is added, which serves as an entry point into the contract code.
Can some body please tell me what is a function selector?
I tried google and found:
The first four bytes of the call data for a function call specifies the function to be called. It is the first (left, high-order in big-endian) four bytes of the Keccak-256 (SHA-3) hash of the signature of the function. The signature is defined as the canonical expression of the basic prototype without data location specifier, i.e. the function name with the parenthesised list of parameter types. Parameter types are split by a single comma - no spaces are used.
I can't understand what is call data?
Some body please guide me.
Zulfi.
I can't understand what is call data?
- there is no mentioning of "call data" in the description that you've pasted here!