Created
June 1, 2018 12:45
-
-
Save janfilips/e9c5b56620f2fca6dc26fb61faa7aba0 to your computer and use it in GitHub Desktop.
This file contains 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.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