pub fn function_selector(signature: &str) -> [u8; 4]
Computes the 4-byte function selector keccak256(signature)[..4].
keccak256(signature)[..4]
signature must be the canonical form, e.g. "transfer(address,uint256)".
signature
"transfer(address,uint256)"