Created
May 18, 2018 12:23
-
-
Save kaibakker/ea7dd06aa14165ef24249b9c98dbaac7 to your computer and use it in GitHub Desktop.
Append only contract
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.8; | |
contract AppendOnly { | |
bytes32 tip; | |
function AppendOnly(bytes32 tail) { | |
tip = tail | |
} | |
function join(newHash) { | |
tip = keccak256(tip, newHash) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment