Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 666 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 666 Bytes

solidity-notary-example

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

Interact with the contract using the Truffle CLI (v3.4.5)

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!")