summaryrefslogtreecommitdiff
path: root/src/db.hrl
blob: ce6df7bd4146d6a0cd3516da662f4ac072000b9a (plain)
1
2
3
4
5
6
7
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 #plop_entry{} in mtl.
          mtl :: mtl(),              % Merkle Tree Leaf, an #mtl{}.
          spt_text :: binary() % Signed Plop Timestamp, an #spt_on_wire{}.
         }).