[Ceres]: Allow arbitrary sized message in Crypto.verify_sig (#481)

* Allow arbitrary sized msg in signature verification

* Move Address.to_bytes documentation to correct place
This commit is contained in:
Hans Svensson
2023-08-24 16:14:40 +02:00
parent 108cb1f948
commit 78b758c337
4 changed files with 15 additions and 12 deletions
+1 -1
View File
@@ -775,7 +775,7 @@ global_env() ->
%% Crypto/Curve operations
CryptoScope = #scope
{ funs = MkDefs(
[{"verify_sig", Fun([Hash, Address, SignId], Bool)},
[{"verify_sig", Fun([Bytes('_'), Address, SignId], Bool)},
{"verify_sig_secp256k1", Fun([Hash, Bytes(64), SignId], Bool)},
{"ecverify_secp256k1", Fun([Hash, Bytes(20), Bytes(65)], Bool)},
{"ecrecover_secp256k1", Fun([Hash, Bytes(65)], Option(Bytes(20)))},