> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://v3.viem.sh/api/mcp` to find what you need.

# Signature.validate

:::info
`Signature.validate` is a re-export of ox's [`Signature.validate`](https://oxlib.sh/api/Signature/validate). Refer to the ox documentation for the full reference.
:::

Validates a Signature. Returns `true` if the signature is valid, `false` otherwise.

## Imports

```ts
import { Signature } from 'viem/utils'
```

## Examples

```ts twoslash
// @noErrors
// @errors: 2322
import { Signature } from 'viem/utils'

const valid = Signature.validate({
  r: '-0x6e100a352ec6ad1b70802290e18aeed190704973570f3b8ed42cb9808e2ea6bf',
  s: '0x4a90a229a244495b41890987806fcbd2d5d23fc0dbe5f5256c2613c039d76db8',
  yParity: 1
})
// @log: false
```

## Definition

```ts
function validate(
  signature: ExactPartial<Signature>,
  options?: validate.Options,
): boolean
```

## Parameters

### signature

* **Type:** `ExactPartial<Signature>`

The signature object to assert.

### options

* **Type:** `validate.Options`
* **Optional**

#### options.recovered

* **Type:** `boolean`
* **Optional**

Whether or not the signature should be recovered (contain `yParity`).

## Return Type

`boolean`
