diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/db.hrl | 2 | ||||
-rw-r--r-- | src/plop.erl | 8 |
2 files changed, 5 insertions, 5 deletions
@@ -4,5 +4,5 @@ index :: non_neg_integer(), % Primary key. hash :: binary(), % Hash over #plop_entry{} in mtl. mtl :: mtl(), % Merkle Tree Leaf. - spt :: spt_on_wire() % Signed Plop Timestamp. + spt :: spt() % Signed Plop Timestamp. }). diff --git a/src/plop.erl b/src/plop.erl index 1a80dea..05b8a92 100644 --- a/src/plop.erl +++ b/src/plop.erl @@ -154,7 +154,7 @@ do_add(TimestampedEntry = #timestamped_entry{entry = PlopEntry}, %% @doc Signed Plop Timestamp, conformant to an SCT in RFC6962 3.2 and %% RFC5246 4.7. --spec spt(binary(), public_key:rsa_private_key(), timestamped_entry()) -> spt_on_wire(). +-spec spt(binary(), public_key:rsa_private_key(), timestamped_entry()) -> spt(). spt(LogID, PrivKey, #timestamped_entry{ timestamp = Timestamp, entry = #plop_entry{type = EntryType, data = EntryData} @@ -167,7 +167,7 @@ spt(LogID, PrivKey, #timestamped_entry{ entry_type = EntryType, signed_entry = EntryData})), Signature = signhash(BinToSign, PrivKey), - #spt_on_wire{ + #spt{ version = ?PLOPVERSION, logid = LogID, timestamp = Timestamp, @@ -285,7 +285,7 @@ timestamp(Timestamp) -> _ -> Timestamp end. --spec serialise(plop_entry() | timestamped_entry() | spt_on_wire() | spt_signed() | mtl() | sth()) -> iolist(). +-spec serialise(plop_entry() | timestamped_entry() | spt() | spt_signed() | mtl() | sth()) -> iolist(). serialise(#plop_entry{ type = TypeAtom, data = Data @@ -299,7 +299,7 @@ serialise(#timestamped_entry{ }) -> [<<Timestamp:64>>, serialise(PlopEntry)]; -serialise(#spt_on_wire{ +serialise(#spt{ version = Version, logid = LogID, timestamp = Timestamp, |