Skip to content

Instantly share code, notes, and snippets.

@yakkomajuri
Last active August 5, 2019 19:14
Show Gist options
  • Save yakkomajuri/702329f0edf97e91933918d9ddf3be93 to your computer and use it in GitHub Desktop.
Save yakkomajuri/702329f0edf97e91933918d9ddf3be93 to your computer and use it in GitHub Desktop.
pragma solidity^0.5.0;
contract HashCheckpoint {
mapping(address => bytes32) public checkpointHash;
event LogSuccess(bool registered);
function registerHash(bytes32 _latestHash) external {
checkpointHash[msg.sender] = _latestHash;
emit LogSuccess(true);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment