Add function spec for API

This commit is contained in:
Tino Breddin 2019-08-19 17:27:21 +02:00
parent d17792f2fe
commit 4ca033637c

View File

@ -20,6 +20,7 @@ not_loaded(Line) ->
%%=============================================================================
%% External API
-spec recover(<<_:(32*8)>>, <<_:(65*8)>>) -> <<_:(32*8)>>.
recover(<<_:32/binary>> = Hash, <<_:65/binary>> = Sig) ->
Input = <<Hash/binary, 0:(8*31), Sig/binary>>,
case recover_(Input) of