Handle non valid input, remove debug

This commit is contained in:
Sean Hinde
2023-01-12 15:48:11 +01:00
parent 2946ac84f8
commit 55cb5526eb
2 changed files with 5 additions and 7 deletions
+3 -1
View File
@@ -37,7 +37,9 @@ recover(Hash, <<V, Sig:64/binary>>) when V == 27; V == 28 ->
<<0:96, ShortPub/binary>>;
{error, _} ->
<<0:256>>
end.
end;
recover(_Hash, _VSig) ->
<<0:256>>.
-spec recover(<<_:(32*8)>>, <<_:(65*8)>>, integer()) -> <<_:(32*8)>>.
recover(_Hash, _Sig, _RecId) ->