From dc6b383aa4a9cc1e2793c4d9f3be81bd676b7a20 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Sat, 27 Sep 2014 15:45:14 +0200 Subject: wip --- include/plop.hrl | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'include/plop.hrl') diff --git a/include/plop.hrl b/include/plop.hrl index b62a04a..b04af0d 100644 --- a/include/plop.hrl +++ b/include/plop.hrl @@ -5,46 +5,12 @@ %%% database storage, some for interfacing with consumers and some are %%% for serialisation. --define(PLOPVERSION, 0). - --type signature_type() :: certificate_timestamp | tree_hash | test. % uint8 --type entry_type() :: x509 | precert | test. % uint16 --type leaf_type() :: timestamped_entry | test. % uint8 - %% @doc Merkle Tree Leaf -- what's sent as 'leaf_input' in response to %% get-entries requests and also the input to the hash function for %% leaf hashes in the tree. RFC 6962 sect 3.4. --record(mtl, { - version = ?PLOPVERSION :: non_neg_integer(), - leaf_type = timestamped_entry :: leaf_type(), - entry :: timestamped_entry() - }). --type mtl() :: #mtl{}. - --record(spt, { - version :: non_neg_integer(), % uint8 - logid :: binary(), % SHA-256 over DER encoded public log key - timestamp :: integer(), % uint64 - signature :: signature() - }). --type spt() :: #spt{}. - -%% A plop entry with timestamp. Part of the Merkle Tree Leaf -%% structure. --record(timestamped_entry, { - timestamp = now :: now | integer(), - entry :: plop_entry() - }). --type timestamped_entry() :: #timestamped_entry{}. %% An entry, without the timestamp. This is what we hash over and %% store in the the database for finding duplicated submissions. --record(plop_entry, { - type :: entry_type(), - data :: binary() - }). --type plop_entry() :: #plop_entry{}. - -record(sth, { treesize :: integer(), timestamp :: integer(), @@ -69,5 +35,3 @@ signature :: binary() }). -type signature() :: #signature{}. - --export_type([timestamped_entry/0, mtl/0, entry_type/0]). -- cgit v1.1