> ## Documentation Index
> Fetch the complete documentation index at: https://tech.ramses.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# IERC1271

Interface that verifies provided signature for the data

Interface defined by EIP-1271

## Functions

### isValidSignature

```solidity theme={null}
  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:

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

#### Return Values:

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