Skip to content

Instantly share code, notes, and snippets.

@saintbyte saintbyte/test1.sol
Created Jul 8, 2018

What would you like to do?
pragma solidity ^0.4.19;
contract Test1 {
bytes32 originalHash;
constructor() public {
originalHash = keccak256(abi.encode(123));
function hash(uint originalValue) public view returns (bool) {
bytes32 hashResult = keccak256(abi.encode(originalValue));
if (hashResult == originalHash) return true;
return false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.