From 87757c2219744426a1d5c9c698e109c47ea892da Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Sun, 4 May 2014 19:56:38 +0200 Subject: Adopt to first user -- ctls. Return #spt_on_wire instead of serialised version of it -- user wants the timestamp in there. Store that in db too. Export serialise/1 for user to do it themselves. Add get_logid/1 -- user needs that for the CST. Make sure 'now' is turned into a proper timestamp at all levels. Debug printout in plop start_link. --- src/db.hrl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/db.hrl') diff --git a/src/db.hrl b/src/db.hrl index ce6df7b..01bd63f 100644 --- a/src/db.hrl +++ b/src/db.hrl @@ -3,6 +3,6 @@ -record(plop, { index :: non_neg_integer(), % Primary key. hash :: binary(), % Hash over #plop_entry{} in mtl. - mtl :: mtl(), % Merkle Tree Leaf, an #mtl{}. - spt_text :: binary() % Signed Plop Timestamp, an #spt_on_wire{}. + mtl :: mtl(), % Merkle Tree Leaf. + spt :: spt_on_wire() % Signed Plop Timestamp. }). -- cgit v1.1