{
    "Function": "verify",
    "File": "contracts/libs/SignatureChecker.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "IERC1271",
        "Address"
    ],
    "Internal Calls": [
        "abi.encodePacked()",
        "recover",
        "keccak256(bytes)",
        "abi.encodePacked()"
    ],
    "Library Calls": [
        "isContract"
    ],
    "Low-Level Calls": [],
    "Code": "function verify(\n    bytes32 orderHash,\n    address signer,\n    bytes32 r,\n    bytes32 s,\n    uint8 v,\n    bytes32 domainSeparator\n  ) internal view returns (bool) {\n    // \\x19\\x01 is the standardized encoding prefix\n    // https://eips.ethereum.org/EIPS/eip-712#specification\n    bytes32 digest = keccak256(abi.encodePacked('\\x19\\x01', domainSeparator, orderHash));\n\n    if (Address.isContract(signer)) {\n      // 0x1626ba7e is the interfaceId for signature contracts (see IERC1271)\n      return IERC1271(signer).isValidSignature(digest, abi.encodePacked(r, s, v)) == 0x1626ba7e;\n    } else {\n      return recover(digest, r, s, v) == signer;\n    }\n  }"
}