ERC-5267: EIP-712 Domain Retrieval
A meta-standard: contracts that use EIP-712 should expose their domain via a single view method so that wallets and indexers can construct typed signing requests without hard-coding the domain.
Required Method
function eip712Domain() external view returns (
bytes1 fields,
string memory name,
string memory version,
uint256 chainId,
address verifyingContract,
bytes32 salt,
uint256[] memory extensions
);Neo Equivalent
A Neo contract's domain is fully derivable from its manifest and script hash — wallets and clients fetch it via ContractManagement.GetContract(...) and the network ID via Runtime.GetNetwork(). The C# port just exposes a convenience method that returns the same metadata, but it's optional.
Live on Neo TestNet
Both implementations are deployed on Neo N3 TestNet (network magic 894710606).
| Implementation | Contract Hash | Deploy Tx |
|---|---|---|
Solidity (neo-solc) | 0x1dd8a39225d515a4621c5214f336c78f4b19bb6c | 0x5994e152…d7add3a8 |
Neo C# (nccs) | 0xdcfa06612bfa8614e4d197bc8206b68320cd9877 | 0x028edfdf…3d17508 |
Cross-implementation getName and getVersion calls return identical MyDApp / 1. Source pairs under docs/standards-mirror/deployments/erc-5267/.
