What does the EIP-712 signing domain distinguish?
EIP-712 defines deterministic encoding for typed data. Its domain separator can bind a message to an application, version, chain or verifying contract depending on the fields supplied.
EIP-712 in practice
The same order can have different digests for two verifying contracts. To prevent reuse within one contract, an application still needs to track filled orders or consumed nonces.
中文
EIP-712 的签名域能区分什么?
EIP-712 对结构化数据进行确定性编码。域分隔符可绑定应用名称、版本、链或验证合约,具体取决于使用的字段。
EIP-712 应用实例
同一份订单在两个验证合约上可得到不同摘要。若在同一合约内防止订单被多次使用,应用仍需自行记录订单状态或已用 nonce。