# IERC1271

Interface that verifies provided signature for the data

Interface defined by EIP-1271

### Functions[​](https://docs.uniswap.org/contracts/v3/reference/periphery/interfaces/external/IERC1271#functions) <a href="#functions" id="functions"></a>

#### isValidSignature[​](https://docs.uniswap.org/contracts/v3/reference/periphery/interfaces/external/IERC1271#isvalidsignature) <a href="#isvalidsignature" id="isvalidsignature"></a>

```solidity
  function isValidSignature(
    bytes32 hash,
    bytes signature
  ) external returns (bytes4 magicValue)
```

Returns whether the provided signature is valid for the provided data

MUST return the bytes4 magic value 0x1626ba7e when function passes. MUST NOT modify state (using STATICCALL for solc < 0.5, view modifier for solc > 0.5). MUST allow external calls.

**Parameters:**[**​**](https://docs.uniswap.org/contracts/v3/reference/periphery/interfaces/external/IERC1271#parameters)

| Name        | Type    | Description                                 |
| ----------- | ------- | ------------------------------------------- |
| `hash`      | bytes32 | Hash of the data to be signed               |
| `signature` | bytes   | Signature byte array associated with \_data |

**Return Values:**[**​**](https://docs.uniswap.org/contracts/v3/reference/periphery/interfaces/external/IERC1271#return-values)

| Name         | Type    | Description                       |
| ------------ | ------- | --------------------------------- |
| `magicValue` | bytes32 | The bytes4 magic value 0x1626ba7e |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dragonswap.app/dragonswap/resources/developer-resources/smart-contracts/dragonswapv2/periphery/interfaces/external/ierc1271.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
