Skip to content

Commit 18d70b6

Browse files
authored
Update contracts/utils/cryptography/ERC7913SignatureVerifierP256.sol
1 parent cd9b527 commit 18d70b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/utils/cryptography/ERC7913SignatureVerifierP256.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ contract ERC7913SignatureVerifierP256 is IERC7913SignatureVerifier {
1212
/// @inheritdoc IERC7913SignatureVerifier
1313
function verify(bytes calldata key, bytes32 hash, bytes calldata signature) public view virtual returns (bytes4) {
1414
// Signature length may be 0x40 or 0x41.
15-
if (key.length == 0x40 && signature.length > 0x3f && signature.length < 0x42) {
15+
if (key.length == 0x40 && signature.length >= 0x40) {
1616
bytes32 qx = bytes32(key[0x00:0x20]);
1717
bytes32 qy = bytes32(key[0x20:0x40]);
1818
bytes32 r = bytes32(signature[0x00:0x20]);

0 commit comments

Comments
 (0)