← Code LabSolidity0/50 solved · 0%
Crypto · medium

34. Signature verification

Use ecrecover to authenticate signers.

Write `verify(bytes32 hash, uint8 v, bytes32 r, bytes32 s, address expected)` returning `true` if `ecrecover(hash, v, r, s) == expected`.
Required in your answer: ecrecover(h, v, r, s)== expected