summaryrefslogtreecommitdiff
path: root/src/plop.erl
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2015-03-23 15:59:33 +0100
committerLinus Nordberg <linus@nordberg.se>2015-03-23 16:01:31 +0100
commit4d586a032257ee600e2191e7e701243cd8f7e92c (patch)
tree5544295c0b32e7138754f893a653c729f32f2aa4 /src/plop.erl
parent5b0b390b9336c1992b076da6f2aa8a115970f0ef (diff)
Fix specs; remove unused file.
Add a spec; remove some warnings.
Diffstat (limited to 'src/plop.erl')
-rw-r--r--src/plop.erl6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plop.erl b/src/plop.erl
index ebadcc5..61af616 100644
--- a/src/plop.erl
+++ b/src/plop.erl
@@ -131,6 +131,7 @@ get(Start, End) ->
lists:map(fun (E) -> fill_in_entry(E) end,
db:get_by_indices(Start, EndBound, {sorted, false})).
+-spec get(binary()) -> notfound | {notfetched, binary(), binary()}.
get(Hash) ->
db:get_by_entry_hash(Hash).
@@ -306,12 +307,9 @@ verify_sth(Treesize, Timestamp, Roothash, PackedSignature) ->
timestamp = Timestamp,
tree_size = Treesize,
root_hash = Roothash}),
- <<HashAlg:8, SignatureAlg:8, SigLen:16, Signature/binary>> = PackedSignature,
+ <<_HashAlg:8, _SigAlg:8, _SigLen:16, Signature/binary>> = PackedSignature,
sign:verify_sth(STH, Signature).
-
-
-
%%%%%%%%%%%%%%%%%%%%
%% Serialisation of data.