{"id":1194,"date":"2026-10-24T11:42:05","date_gmt":"2026-10-24T03:42:05","guid":{"rendered":"https:\/\/lezoo6.com\/index.php\/news\/daily\/signature-standards-four-paths\/"},"modified":"2026-10-24T11:42:05","modified_gmt":"2026-10-24T03:42:05","slug":"signature-standards-four-paths","status":"publish","type":"page","link":"https:\/\/lezoo6.com\/index.php\/news\/daily\/signature-standards-four-paths\/","title":{"rendered":"\u4f60\u7b7e\u7684\u90a3\u4e32\u5341\u516d\u8fdb\u5236\u662f\u4ec0\u4e48\uff1aEOA\u3001EIP-712\u3001EIP-1271\u3001EIP-6492 \u56db\u6761\u9a8c\u8bc1\u8def\u5f84"},"content":{"rendered":"<p>\u94b1\u5305\u5f39\u51fa\u4e00\u6bb5\u5341\u516d\u8fdb\u5236\u8ba9\u4f60\u201c\u7b7e\u540d\u767b\u5f55\u201d\uff0c\u4f60\u70b9\u4e86\u786e\u8ba4\u3002\u7b7e\u5b8c\u4e4b\u540e\u6709\u6ca1\u6709\u8d44\u4ea7\u88ab\u5212\u8d70\uff0c\u53d6\u51b3\u4e8e\u8fd9\u4e32\u7b7e\u540d\u843d\u5728\u54ea\u4e00\u7c7b\u6807\u51c6\u4e0b\u2014\u2014\u540c\u6837\u662f\u201c\u7b7e\u4e2a\u540d\u201d\uff0c\u56db\u6761\u9a8c\u8bc1\u8def\u5f84\u7684\u540e\u679c\u5b8c\u5168\u4e0d\u540c\u3002<\/p>\n<h2>\u56db\u7c7b\u7b7e\u540d\uff0c\u56db\u6761\u9a8c\u8bc1\u8def\u5f84<\/h2>\n<p>\u94b1\u5305\u7b7e\u540d\u770b\u8d77\u6765\u662f\u540c\u4e00\u4e2a\u52a8\u4f5c\uff0c\u94fe\u4e0a\u9a8c\u8bc1\u5374\u5206\u56db\u6761\u8def\uff1a\u666e\u901a\u8d26\u6237\uff08EOA\uff09\u7684\u692d\u5706\u66f2\u7ebf\u7b7e\u540d\u9760 ecrecover \u6062\u590d\u5730\u5740\uff1b\u7ed3\u6784\u5316\u6388\u6743\u7528 EIP-712 \u628a\u5b57\u6bb5\u62fc\u6210\u54c8\u5e0c\uff1b\u5408\u7ea6\u8d26\u6237\u6ca1\u6709\u79c1\u94a5\uff0c\u8981\u9760 EIP-1271 \u8ba9\u5408\u7ea6\u81ea\u5df1\u56de\u7b54\u201c\u8fd9\u4e2a\u7b7e\u540d\u6709\u6548\u5417\u201d\uff1b\u8fd8\u6ca1\u90e8\u7f72\u7684\u5408\u7ea6\u8d26\u6237\uff0c\u5219\u8981\u7528 EIP-6492 \u5148\u90e8\u7f72\u518d\u9a8c\u3002<\/p>\n<h2>EOA\uff1a\u56fa\u5b9a\u524d\u7f00\u4e0e ecrecover<\/h2>\n<p>\u666e\u901a\u5730\u5740\u7531\u79c1\u94a5\u63a8\u5bfc\uff0c\u7b7e\u540d\u662f secp256k1 \u4e0a\u7684 ECDSA\u3002\u5bf9\u4efb\u610f\u6d88\u606f\u7b7e\u540d\u65f6\uff0c\u6807\u51c6\u4f1a\u5728\u539f\u6587\u524d\u52a0\u56fa\u5b9a\u524d\u7f00 <code>\\x19Ethereum Signed Message:\\n<\/code> \u4e0e\u6d88\u606f\u957f\u5ea6\uff0c\u907f\u514d\u4e00\u6bb5\u7b7e\u540d\u88ab\u5f53\u6210\u4e00\u7b14\u4ea4\u6613\u91cd\u653e\u3002\u9a8c\u8bc1\u65b9\u7528 ecrecover \u53cd\u63a8\u5730\u5740\uff0c\u518d\u548c\u4f60\u58f0\u79f0\u7684\u5730\u5740\u6bd4\u5bf9\u3002\u8fd9\u79cd\u7b7e\u540d\u6ca1\u6709\u7ed3\u6784\uff0c\u94b1\u5305\u754c\u9762\u53ea\u80fd\u663e\u793a\u4e00\u4e32\u5341\u516d\u8fdb\u5236\u2014\u2014\u8fd9\u6b63\u662f\u9493\u9c7c\u6700\u5e38\u89c1\u7684\u5165\u53e3\u3002<\/p>\n<h2>EIP-712\uff1a\u628a\u5b57\u6bb5\u5199\u8fdb\u54c8\u5e0c<\/h2>\n<p>EIP-712 \u4e8e 2017 \u5e74 9 \u6708 12 \u65e5\u63d0\u51fa\uff0c\u4f9d\u8d56 EIP-155 \u4e0e EIP-191\u3002\u5b83\u628a\u7ed3\u6784\u5316\u5b57\u6bb5\u6309\u7c7b\u578b\u7f16\u7801\u6210 hashStruct\uff0c\u518d\u4e0e\u4e00\u4e2a domainSeparator \u62fc\u63a5\uff1a<\/p>\n<p><code>hash = keccak256(\"\\x19\\x01\" \u2016 domainSeparator \u2016 hashStruct(message))<\/code><\/p>\n<p>domainSeparator \u91cc\u542b chainId \u4e0e\u9a8c\u8bc1\u5408\u7ea6\u5730\u5740\uff0c\u6240\u4ee5\u540c\u4e00\u6761\u7b7e\u540d\u6362\u6761\u94fe\u3001\u6362\u4e2a\u5408\u7ea6\u5c31\u5931\u6548\uff0c\u8fd9\u662f\u5b83\u6321\u4f4f\u8de8\u94fe\u91cd\u653e\u7684\u65b9\u5f0f\u3002\u94b1\u5305\u56e0\u6b64\u80fd\u628a\u201c\u6388\u6743\u989d\u5ea6 100 USDC\u3001\u5230\u671f\u65f6\u95f4\u3001spender \u5730\u5740\u201d\u9010\u5b57\u6bb5\u6446\u51fa\u6765\uff0c\u800c\u4e0d\u662f\u4e00\u4e32\u4e71\u7801\u3002\u8981\u6ce8\u610f EIP-712 \u672c\u8eab\u4e0d\u63d0\u4f9b\u91cd\u653e\u4fdd\u62a4\uff0cnonce \u5f97\u7531\u4e1a\u52a1\u81ea\u5df1\u7ba1\u3002<\/p>\n<h2>EIP-1271\uff1a\u5408\u7ea6\u81ea\u5df1\u56de\u7b54<\/h2>\n<p>\u5408\u7ea6\u8d26\u6237\u6ca1\u6709\u79c1\u94a5\uff0c\u4ea7\u751f\u4e0d\u4e86 ECDSA \u7b7e\u540d\u3002EIP-1271\uff082018 \u5e74 7 \u6708 25 \u65e5\u63d0\u51fa\uff09\u89c4\u5b9a\uff1a\u9a8c\u8bc1\u65b9\u8c03\u7528\u5408\u7ea6\u7684 isValidSignature(hash, signature)\uff0c\u901a\u8fc7\u65f6\u5408\u7ea6\u5fc5\u987b\u8fd4\u56de\u56fa\u5b9a\u9b54\u6cd5\u503c 0x1626ba7e\uff0c\u4e0d\u901a\u8fc7\u8fd4\u56de 0xffffffff\u3002\u51fd\u6570\u5fc5\u987b\u662f view \u6216\u8d70 staticcall\uff0c\u4e0d\u5141\u8bb8\u6539\u72b6\u6001\uff0c\u5426\u5219\u4f1a\u53d8\u6210\u53ef\u88ab\u5229\u7528\u7684\u5199\u5165\u53e3\u3002<\/p>\n<h2>EIP-6492\uff1a\u8fd8\u6ca1\u90e8\u7f72\u7684\u5408\u7ea6<\/h2>\n<p>\u667a\u80fd\u94b1\u5305\u5e38\u628a\u90e8\u7f72\u63a8\u8fdf\u5230\u7b2c\u4e00\u7b14\u4ea4\u6613\uff0c\u4e8e\u662f\u767b\u5f55\u7b7e\u540d\u53d1\u751f\u65f6\u5730\u5740\u4e0a\u8fd8\u6ca1\u6709\u4ee3\u7801\uff0c1271 \u65e0\u4ece\u8c03\u7528\u3002EIP-6492\uff082023 \u5e74 2 \u6708 10 \u65e5\u63d0\u51fa\uff0c\u4f9d\u8d56 1271\uff09\u89c4\u5b9a\uff1a\u5728\u7b7e\u540d\u5c3e\u90e8\u8ffd\u52a0\u4e00\u4e32\u56fa\u5b9a\u7684\u9b54\u6cd5\u5b57\u8282\uff0c\u5373 0x6492 \u91cd\u590d 32 \u5b57\u8282\uff1b\u9a8c\u8bc1\u65b9\u8bc6\u522b\u5230\u5b83\uff0c\u5c31\u5148\u901a\u8fc7\u5de5\u5382\u90e8\u7f72\u5408\u7ea6\uff0c\u518d\u8c03\u7528 isValidSignature\u3002\u6587\u6863\u5efa\u8bae\u914d\u5408 CREATE2 \u4f7f\u7528\uff0c\u56e0\u4e3a\u90e8\u7f72\u5730\u5740\u53ef\u9884\u6d4b\u3002<\/p>\n<h2>\u56db\u6761\u8def\u5f84\u5bf9\u7167<\/h2>\n<table>\n<thead>\n<tr>\n<th>\u7c7b\u578b<\/th>\n<th>\u63d0\u51fa\u65f6\u95f4<\/th>\n<th>\u9a8c\u8bc1\u5165\u53e3<\/th>\n<th>\u5173\u952e\u5e38\u91cf<\/th>\n<th>\u9002\u7528\u8d26\u6237<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>EOA \/ ECDSA<\/td>\n<td>\u6cbf\u7528\u6bd4\u7279\u5e01\u65f6\u4ee3<\/td>\n<td>ecrecover<\/td>\n<td>\u524d\u7f00 \\x19Ethereum Signed Message:\\n<\/td>\n<td>\u666e\u901a\u94b1\u5305<\/td>\n<\/tr>\n<tr>\n<td>EIP-712<\/td>\n<td>2017-09-12<\/td>\n<td>domainSeparator + hashStruct<\/td>\n<td>\u524d\u7f00 \\x19\\x01<\/td>\n<td>\u6388\u6743\u3001\u8ba2\u5355\u3001\u767b\u5f55<\/td>\n<\/tr>\n<tr>\n<td>EIP-1271<\/td>\n<td>2018-07-25<\/td>\n<td>isValidSignature<\/td>\n<td>0x1626ba7e<\/td>\n<td>\u591a\u7b7e\u3001\u667a\u80fd\u94b1\u5305<\/td>\n<\/tr>\n<tr>\n<td>EIP-6492<\/td>\n<td>2023-02-10<\/td>\n<td>\u5148\u90e8\u7f72\uff0c\u518d\u8d70 1271<\/td>\n<td>0x6492 \u91cd\u590d 32 \u5b57\u8282<\/td>\n<td>\u672a\u90e8\u7f72\u7684\u667a\u80fd\u94b1\u5305<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u770b\u7b7e\u540d\u8bf7\u6c42\u65f6\uff0c\u5148\u5224\u65ad\u5bf9\u65b9\u662f\u666e\u901a\u5730\u5740\u8fd8\u662f\u5408\u7ea6\uff0c\u518d\u770b\u5c55\u793a\u7684\u662f\u539f\u6587\u8fd8\u662f\u7ed3\u6784\u5b57\u6bb5\u3002\u7ed3\u6784\u5b57\u6bb5\u8d8a\u5b8c\u6574\uff0c\u6388\u6743\u8303\u56f4\u8d8a\u6e05\u695a\uff1b\u53ea\u663e\u793a\u4e00\u4e32\u54c8\u5e0c\u7684\uff0c\u98ce\u9669\u6700\u9ad8\u3002<\/p>\n<h3>FAQ<\/h3>\n<p><strong>\u95ee\uff1a\u7b7e\u4e86\u201c\u767b\u5f55\u6d88\u606f\u201d\u4f1a\u628a\u5e01\u8f6c\u8d70\u5417\uff1f<\/strong><br \/>\u7b54\uff1a\u666e\u901a personal_sign \u53ea\u5bf9\u539f\u6587\u7b7e\u540d\uff0c\u672c\u8eab\u4e0d\u542b\u8f6c\u8d26\u6307\u4ee4\uff1b\u4f46\u5982\u679c\u7b7e\u540d\u5185\u5bb9\u662f\u4e00\u7b14 EIP-712 \u6388\u6743\uff08\u4f8b\u5982 Permit\uff09\uff0c\u5b83\u53ef\u80fd\u76f4\u63a5\u7ed9\u51fa\u989d\u5ea6\u3002\u770b\u94b1\u5305\u5c55\u793a\u7684\u5b57\u6bb5\uff0c\u522b\u53ea\u770b\u201c\u767b\u5f55\u201d\u4e24\u4e2a\u5b57\u3002<\/p>\n<p><strong>\u95ee\uff1a\u4e3a\u4ec0\u4e48\u540c\u4e00\u4e2a\u7b7e\u540d\u5728\u53e6\u4e00\u6761\u94fe\u4e0a\u4e0d\u80fd\u7528\uff1f<\/strong><br \/>\u7b54\uff1aEIP-712 \u7684 domainSeparator \u542b chainId\uff0c\u94fe\u53d8\u4e86\u54c8\u5e0c\u5c31\u53d8\uff0c\u9a8c\u8bc1\u81ea\u7136\u4e0d\u901a\u8fc7\u3002<\/p>\n<p><strong>\u95ee\uff1a\u591a\u7b7e\u94b1\u5305\u7684\u7b7e\u540d\u600e\u4e48\u9a8c\uff1f<\/strong><br \/>\u7b54\uff1a\u8d70 EIP-1271\uff0c\u7531\u5408\u7ea6\u6309\u81ea\u5df1\u7684\u89c4\u5219\uff08\u9608\u503c\u3001\u65f6\u95f4\u9501\u3001\u6a21\u5757\uff09\u5224\u65ad\uff0c\u9a8c\u8bc1\u65b9\u53ea\u8ba4\u8fd4\u56de\u503c\u3002<\/p>\n<p><script type=\"application\/ld+json\">{\"@context\":\"https:\/\/schema.org\",\"@type\":\"FAQPage\",\"mainEntity\":[{\"@type\":\"Question\",\"name\":\"\u7b7e\u4e86\u767b\u5f55\u6d88\u606f\u4f1a\u628a\u5e01\u8f6c\u8d70\u5417\uff1f\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"\u666e\u901a personal_sign \u53ea\u5bf9\u539f\u6587\u7b7e\u540d\uff0c\u672c\u8eab\u4e0d\u542b\u8f6c\u8d26\u6307\u4ee4\uff1b\u4f46\u5982\u679c\u7b7e\u540d\u5185\u5bb9\u662f\u4e00\u7b14 EIP-712 \u6388\u6743\uff08\u4f8b\u5982 Permit\uff09\uff0c\u5b83\u53ef\u80fd\u76f4\u63a5\u7ed9\u51fa\u989d\u5ea6\u3002\u770b\u94b1\u5305\u5c55\u793a\u7684\u5b57\u6bb5\uff0c\u522b\u53ea\u770b\u767b\u5f55\u4e24\u4e2a\u5b57\u3002\"}},{\"@type\":\"Question\",\"name\":\"\u4e3a\u4ec0\u4e48\u540c\u4e00\u4e2a\u7b7e\u540d\u5728\u53e6\u4e00\u6761\u94fe\u4e0a\u4e0d\u80fd\u7528\uff1f\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"EIP-712 \u7684 domainSeparator \u542b chainId\uff0c\u94fe\u53d8\u4e86\u54c8\u5e0c\u5c31\u53d8\uff0c\u9a8c\u8bc1\u81ea\u7136\u4e0d\u901a\u8fc7\u3002\"}},{\"@type\":\"Question\",\"name\":\"\u591a\u7b7e\u94b1\u5305\u7684\u7b7e\u540d\u600e\u4e48\u9a8c\uff1f\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"\u8d70 EIP-1271\uff0c\u7531\u5408\u7ea6\u6309\u81ea\u5df1\u7684\u89c4\u5219\uff08\u9608\u503c\u3001\u65f6\u95f4\u9501\u3001\u6a21\u5757\uff09\u5224\u65ad\uff0c\u9a8c\u8bc1\u65b9\u53ea\u8ba4\u8fd4\u56de\u503c\u3002\"}}]}<\/script><\/p>\n<p class=\"sources\"><strong>\u6765\u6e90\uff1a<\/strong>EIP-712 \u89c4\u8303\uff08eips.ethereum.org\/EIPS\/eip-712\uff0c\u63d0\u51fa\u65e5\u671f 2017-09-12\uff0c\u8bbf\u95ee 2026-10-24\uff09\uff1bEIP-1271 \u89c4\u8303\uff08eips.ethereum.org\/EIPS\/eip-1271\uff0c\u63d0\u51fa\u65e5\u671f 2018-07-25\uff0c\u8bbf\u95ee 2026-10-24\uff09\uff1bEIP-6492 \u89c4\u8303\uff08eips.ethereum.org\/EIPS\/eip-6492\uff0c\u63d0\u51fa\u65e5\u671f 2023-02-10\uff0c\u8bbf\u95ee 2026-10-24\uff09\u3002<\/p>\n<p><strong>\u5185\u94fe\uff1a<\/strong><a href=\"\/index.php\/news\/daily\/token-approval-allowance\/\">\u4e00\u6b21 approve \u4ea4\u51fa\u4e86\u4ec0\u4e48<\/a> \/ <a href=\"\/index.php\/news\/daily\/wallet-zero-balance-five-fields\/\">\u94b1\u5305\u663e\u793a 0 \u65f6\u7684\u4e94\u4e2a\u5b57\u6bb5<\/a> \/ <a href=\"\/index.php\/tools\/onchain\/\">\u94fe\u4e0a\u5de5\u5177\uff1a\u5730\u5740\u8ffd\u8e2a<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u94b1\u5305\u5f39\u51fa\u4e00\u6bb5\u5341\u516d\u8fdb\u5236\u8ba9\u4f60\u201c\u7b7e\u540d\u767b\u5f55\u201d\uff0c\u4f60\u70b9\u4e86\u786e\u8ba4\u3002\u7b7e\u5b8c\u4e4b\u540e\u6709\u6ca1\u6709\u8d44\u4ea7\u88ab\u5212\u8d70\uff0c\u53d6\u51b3\u4e8e\u8fd9\u4e32\u7b7e\u540d\u843d\u5728\u54ea\u4e00\u7c7b\u6807\u51c6\u4e0b\u2014\u2014 &#8230; <a title=\"\u4f60\u7b7e\u7684\u90a3\u4e32\u5341\u516d\u8fdb\u5236\u662f\u4ec0\u4e48\uff1aEOA\u3001EIP-712\u3001EIP-1271\u3001EIP-6492 \u56db\u6761\u9a8c\u8bc1\u8def\u5f84\" class=\"read-more\" href=\"https:\/\/lezoo6.com\/index.php\/news\/daily\/signature-standards-four-paths\/\" aria-label=\"\u9605\u8bfb \u4f60\u7b7e\u7684\u90a3\u4e32\u5341\u516d\u8fdb\u5236\u662f\u4ec0\u4e48\uff1aEOA\u3001EIP-712\u3001EIP-1271\u3001EIP-6492 \u56db\u6761\u9a8c\u8bc1\u8def\u5f84\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":857,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-1194","page","type-page","status-publish"],"_links":{"self":[{"href":"https:\/\/lezoo6.com\/index.php\/wp-json\/wp\/v2\/pages\/1194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lezoo6.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lezoo6.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lezoo6.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lezoo6.com\/index.php\/wp-json\/wp\/v2\/comments?post=1194"}],"version-history":[{"count":0,"href":"https:\/\/lezoo6.com\/index.php\/wp-json\/wp\/v2\/pages\/1194\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/lezoo6.com\/index.php\/wp-json\/wp\/v2\/pages\/857"}],"wp:attachment":[{"href":"https:\/\/lezoo6.com\/index.php\/wp-json\/wp\/v2\/media?parent=1194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}