erc7730.lint.v2.lint_validate_eip712_domain_separator module

V2 linter that validates the domainSeparator of an EIP-712 context against the domain of the descriptor.

The device is given the type of the domain reconstructed from the descriptor, so a domainSeparator has to be the one of this domain: the calldata converter rejects a descriptor whose separator differs from the one computed from the declared domain and deployments. This linter reports it, for instance when the signed domain has more members (such as a version) than the descriptor declares.

final class erc7730.lint.v2.lint_validate_eip712_domain_separator.ValidateEIP712DomainSeparatorLinter[source]View on GitHub

Bases: ERC7730Linter

Validates that the domainSeparator of an EIP-712 context matches the separator computed from the domain.

lint(input_descriptor: InputERC7730Descriptor, descriptor: ResolvedERC7730Descriptor, out: OutputAdder) → None[source]View on GitHub