You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: you can modify the sol contract to store the hash instead of emitting an event, your choice.
Keccak.sol:
// SPDX-License-Identifier: MITpragma solidity^0.8.0;
contractKeccakTransaction {
// Event declaration for logging the hash and senderevent HashComputed(addressindexedsender, bytes32hash);
// Function to compute and store the keccak256 hash of a given inputfunction computeAndStoreHash(stringmemoryinput) public {
bytes32 hash =keccak256(abi.encodePacked(input));
// Emitting an event with the sender and the hashemitHashComputed(msg.sender, hash);
}
}
The text was updated successfully, but these errors were encountered:
Eikix
changed the title
dev: add to test-end-to-end a new solidity contract: keccak
dev: add to tests end-to-end a new solidity contract: keccak for testing keccak step/builtin consumption
Apr 10, 2024
Tasks
Note: you can modify the sol contract to store the hash instead of emitting an event, your choice.
Keccak.sol:
The text was updated successfully, but these errors were encountered: