# `domainSeparator`

Returns the domain separator for this contract, as defined in the [EIP-712 standard](../../home/glossary.md#eip-712).

## Usage


<Tabs items={['example.sol']}>
  <Tabs.Tab>
    ```solidity
    interface ISafe {
        function domainSeparator() external view returns (bytes32);
    }

    contract Example {
        function example() … {
            (ISafe safe).domainSeparator();
        }
    }
    ```
  </Tabs.Tab>
</Tabs>


## Returns

- **Type:** `bytes32`

The domain separator hash.
