Skip to content

Instantly share code, notes, and snippets.

@kaibakker
Created May 18, 2018 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaibakker/ea7dd06aa14165ef24249b9c98dbaac7 to your computer and use it in GitHub Desktop.
Save kaibakker/ea7dd06aa14165ef24249b9c98dbaac7 to your computer and use it in GitHub Desktop.
Append only contract
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