summaryrefslogtreecommitdiff
path: root/src/db.hrl
blob: 3914a8cbc0ebcc03ed9fafa35433a1920d1bedb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
%%% Copyright (c) 2014, NORDUnet A/S.
%%% See LICENSE for licensing information.

%% @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.
         }).