Allow arbitrary sized msg in signature verification

This commit is contained in:
Hans Svensson
2023-08-08 15:55:43 +02:00
parent 8668fd053e
commit 51c523d6b0
4 changed files with 9 additions and 4 deletions
+5 -2
View File
@@ -834,11 +834,14 @@ Hash any object to blake2b
#### verify_sig
```
Crypto.verify_sig(msg : hash, pubkey : address, sig : signature) : bool
Crypto.verify_sig(msg : bytes(), pubkey : address, sig : signature) : bool
```
Checks if the signature of `msg` was made using private key corresponding to
the `pubkey`
the `pubkey`.
Note: before v8 of the compiler, `msg` had type `hash` (i.e. `bytes(32)`).
#### ecverify_secp256k1
```