در حال ورق زدن.
فصل بعدی را باز میکنیم…
هیس… مطالعه را برای خودتان تنظیم کنید.
قلمها و پوستهها در ظاهر هستند. چشمهای شما هم حق انتخاب دارند.
فصل بعدی را باز میکنیم…
An Ethereum interface allowing a smart contract account to report whether it considers a given message signature valid.
در حال بررسی پشتیبانی مرورگر از خواندن با صدا…
این مطلب فعلاً به انگلیسی موجود است. رابط کاربری از زبان انتخابی شما استفاده میکند.
خواندن اصل انگلیسی ←A conventional externally owned account is associated with a signing key. A smart contract wallet can instead require several signers, enforce a time window, or apply another policy. ERC-1271 gives applications a standard function to query that contract's decision about a message hash and signature. This allows an exchange, login service, or other application to support contract wallets without assuming every user can be verified through ordinary single-key signature recovery.
Imagine a treasury wallet requiring two of three authorized people to approve an order. Its ERC-1271 implementation can examine the supplied signature package and return the standard success value only when its policy is satisfied. The application consuming the order must actually call and correctly interpret that interface. Merely storing a wallet address as the order's signer does not establish that the required approvals were obtained or that the message described the intended trade.
Contract signature validity can depend on current state, such as the wallet's current owner set. A signature accepted yesterday may fail after an owner rotation, and an implementation bug can incorrectly accept unauthorized messages. ERC-1271 standardizes the verification interface, not the wallet's entire security policy. Applications also need appropriate message encoding, domain separation, expiration, and replay handling. These layers should be reviewed together when a wallet is described as supporting smart-account signatures.