100 Days Of Solidity, Assembly Math, Solidity Academy.
code for Keccak256 hash function keccak256Hash(bytes memory data) public pure returns (bytes32 hash) { assembly { hash := keccak256(add(data, 0x20), mload(data)) } } Gas-Efficient Loops 🔄 Looping in Solidity can be costly in terms of gas. We’ll explore how to use assembly math to create