> **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.vToYParity

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

Converts a ECDSA `v` value to a `yParity` value.

## Imports

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

## Examples

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

const yParity = Signature.vToYParity(28)
// @log: 1
```

## Definition

```ts
function vToYParity(
  v: number,
): Signature['yParity']
```

## Parameters

### v

* **Type:** `number`

The ECDSA `v` value to convert.

## Return Type

The `yParity` value.

`Signature['yParity']`
