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

:::info
`Signature.yParityToV` is a re-export of ox's [`Signature.yParityToV`](https://oxlib.sh/api/Signature/yParityToV). 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 v = Signature.yParityToV(1)
// @log: 28
```

## Definition

```ts
function yParityToV(
  yParity: number,
): number
```

## Parameters

### yParity

* **Type:** `number`

The ECDSA `yParity` value to convert.

## Return Type

The `v` value.

`number`
