> For the complete documentation index, see [llms.txt](https://docs.algebra.finance/algebra-integral-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.algebra.finance/algebra-integral-documentation/algebra-v1-technical-reference/contracts/api-reference-v1.0/v1.0-periphery/ierc1271.md).

# IERC1271

## IERC1271

Interface for verifying contract-based account signatures Interface that verifies provided signature for the data *Developer note: Interface defined by EIP-1271*

### Functions

#### isValidSignature

`isValidSignature(bytes32,bytes)` view external

Returns whether the provided signature is valid for the provided data

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

**Returns:**

| Name       | Type   | Description |
| ---------- | ------ | ----------- |
| magicValue | bytes4 |             |

***

## IERC1271

Interface for verifying contract-based account signatures Interface that verifies provided signature for the data *Developer note: Interface defined by EIP-1271*

### Functions

#### isValidSignature

`isValidSignature(bytes32,bytes)` view external

Returns whether the provided signature is valid for the provided data

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

**Returns:**

| Name       | Type   | Description |
| ---------- | ------ | ----------- |
| magicValue | bytes4 |             |

***
