From 9dc05f0ed8c31ade084712c87417328183c6a658 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Sun, 4 May 2014 23:58:11 +0200 Subject: Rename spt_on_wire -> spt. --- src/plop.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/plop.erl') 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{ }) -> [<>, serialise(PlopEntry)]; -serialise(#spt_on_wire{ +serialise(#spt{ version = Version, logid = LogID, timestamp = Timestamp, -- cgit v1.1