ECDSA.recover
throws an unexpected error if it fails to recover the signer.
ECDSA.recover
throws an error if it fails to recover the signer.
https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.2/contracts/utils/cryptography/ECDSA.sol#L156
Errors.InvalidOrderSigner
is not reverted if a given signature is invalid, so ECDSA.recover
fails to recover the signer.
https://github.com/Cyfrin/2024-07-zaros/blob/7439d79e627286ade431d4ea02805715e46ccf42/src/perpetuals/branches/SettlementBranch.sol#L269
Manual
Use tryRecover
which returns address(0)
if it fails to recover the signer.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.