Skip to content

Instantly share code, notes, and snippets.

@janfilips
Created June 1, 2018 12:45
Show Gist options
  • Save janfilips/e9c5b56620f2fca6dc26fb61faa7aba0 to your computer and use it in GitHub Desktop.
Save janfilips/e9c5b56620f2fca6dc26fb61faa7aba0 to your computer and use it in GitHub Desktop.
pragma solidity ^0.4.13;
contract NotaryPersistentStorage {
mapping (bytes32 => bool) private proofs;
function NotaryStorage() {
}
function storeProof(bytes32 _proof) public returns (bool) {
proofs[_proof] = true;
return true;
}
function hasProof(bytes32 _proof) public constant returns (bool) {
return proofs[_proof];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment