Example Solidity (0.4.4) notary contract generated by Truffle 🍬
Reference Guide: https://blog.zeppelin.solutions/the-hitchhikers-guide-to-smart-contracts-in-ethereum-848f08001f05
To go into REPL mode:
truffle console
Instantiate the contract
var poe
ProofOfExistence3.deployed().then(function(instance){poe=instance})
Notarize a string
poe.notarize("We went to the moon!")
Check if the string was previously notarized. This will return true
if previously notarized or false
if it wasn’t.
poe.checkDocument("We went to the moon!")