```\\nfunction toEthSignedMessageHash(\\n    bytes memory s\\n) internal pure returns (bytes32) {\\n    return\\n        keccak256(\\n            abi.encodePacked(\\n                "\\x19Ethereum Signed Message:\\n",\\n                Strings.toString(s.length),\\n                s\\n            )\\n        );\\n}\\n```\\n