La page se tourne.
Le prochain chapitre arrive…
Psst… appropriez-vous votre lecture.
Polices et thèmes se trouvent dans Apparence. Vos yeux ont aussi leur mot à dire.
Le prochain chapitre arrive…
Binding a cryptographic message to a specific application, protocol, network, or purpose so that matching data is not confused across contexts.
Vérification de la lecture vocale du navigateur…
Cette lecture est actuellement disponible en anglais. L’interface utilise la langue choisie.
Lire l’original anglais →A signature authorizes a particular encoded message, but applications need to agree on what that message means. Domain separation adds context before hashing or signing. In EIP-712, the signing domain can include an application name, version, chain identifier, and verifying contract. Two services can use the same order fields without treating each other's signatures as interchangeable, provided they choose and validate appropriate domains.
Imagine two trading applications both asking a user to sign an order for ten tokens. The order fields alone do not explain which application is allowed to execute it. Including the intended contract and network in the domain narrows that authority. A version field can also distinguish an upgraded format from an older one. Wallets can display these fields, allowing a person to compare the requested authorization with the application they intended to use.
Domain separation does not automatically make an authorization single-use. The same valid order may still be submitted repeatedly within its intended domain unless the application checks a nonce, records fills, enforces a deadline, or otherwise consumes the permission. EIP-712 explicitly does not provide replay protection by itself. A useful review therefore asks two separate questions: where is this signature valid, and what prevents it from being exercised more times than the signer intended?