summaryrefslogtreecommitdiff
path: root/src/db.hrl
diff options
context:
space:
mode:
Diffstat (limited to 'src/db.hrl')
-rw-r--r--src/db.hrl8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/db.hrl b/src/db.hrl
new file mode 100644
index 0000000..16b9103
--- /dev/null
+++ b/src/db.hrl
@@ -0,0 +1,8 @@
+%% @doc What's stored in the database.
+%% 'index' is the primary key, 'hash' is also indexed.
+-record(plop, {
+ index :: non_neg_integer(), % Primary key.
+ hash :: binary(), % Hash over mtl.
+ mtl :: mtl(), % Merkle Tree Leaf, an #mtl{}.
+ spt_text :: binary() % Signed Plop Timestamp, an #spt_on_wire{}.
+ }).