Solidity Notary Contract

Very basic contract for a notary (timestamping system) written as a design suggestion by Ryanmtate

I described a basic functionality: minimal functionality of a lab book where an individual records experimental data, and a hash of JSON file is timestamped on the blockchain while the data it can be also published on IPFS.

Quote

yeah; not sure if that leads you in the right direction but essentially Note is a data structure that you could map to/from a JSON you could listen for the event or index notes, since notes is public, getter functions are provided in the ABI for you.

contract AuthoredBy { address author; function AuthoredBy(){ author = msg.sender; } modifier isAuthor { if(msg.sender == author) _ } } contract LabNote is AuthoredBy { struct Note { string name; string description; uint result; uint date; address author; } Note [] public notes; event NewNote(string _name, string _description, uint _result, uint _date, address _author); function addNote(string _name, string _description, uint _result) isAuthor { uint dated = now; NewNote(_name, _description, _result, dated, msg.sender); notes.push(Note({name : _name, description : _description, : result : _result, date : dated, author : msg.sender})); } }