summaryrefslogtreecommitdiff
path: root/src/db.hrl
blob: 0a6583c91cc3cdc98433239cddb0bfd514893486 (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.
          spt :: spt()               % Signed Plop Timestamp.
         }).