summaryrefslogtreecommitdiff
path: root/src/db.hrl
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2014-05-04 19:56:38 +0200
committerLinus Nordberg <linus@nordu.net>2014-05-04 19:56:44 +0200
commit87757c2219744426a1d5c9c698e109c47ea892da (patch)
treec935b209f566a175994a797a910ba45da3243adf /src/db.hrl
parentb95fac93ba4bcdfcff7a18718eb587593660bb6c (diff)
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.
Diffstat (limited to 'src/db.hrl')
-rw-r--r--src/db.hrl4
1 files changed, 2 insertions, 2 deletions
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.
}).