Add function spec for API
This commit is contained in:
parent
d17792f2fe
commit
4ca033637c
@ -20,6 +20,7 @@ not_loaded(Line) ->
|
|||||||
%%=============================================================================
|
%%=============================================================================
|
||||||
%% External API
|
%% External API
|
||||||
|
|
||||||
|
-spec recover(<<_:(32*8)>>, <<_:(65*8)>>) -> <<_:(32*8)>>.
|
||||||
recover(<<_:32/binary>> = Hash, <<_:65/binary>> = Sig) ->
|
recover(<<_:32/binary>> = Hash, <<_:65/binary>> = Sig) ->
|
||||||
Input = <<Hash/binary, 0:(8*31), Sig/binary>>,
|
Input = <<Hash/binary, 0:(8*31), Sig/binary>>,
|
||||||
case recover_(Input) of
|
case recover_(Input) of
|
||||||
|
Loading…
x
Reference in New Issue
Block a user