diff options
Diffstat (limited to 'src/plop.erl')
-rw-r--r-- | src/plop.erl | 6 |
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. |