# Signature.fromRpc

Converts a [`Signature.Rpc`](/api/Signature/types#rpc) into a [`Signature.Signature`](/api/Signature/types#signature).

## Imports

:::code-group
```ts [Named]
import { Signature } from 'ox'
```

```ts [Entrypoint]
import * as Signature from 'ox/Signature'
```
:::

## Examples

```ts twoslash
import { Signature } from 'ox'

const signature = Signature.fromRpc({
  r: '0x635dc2033e60185bb36709c29c75d64ea51dfbd91c32ef4be198e4ceb169fb4d',
  s: '0x50c2667ac4c771072746acfdcf1f1483336dcca8bd2df47cd83175dbe60f0540',
  yParity: '0x0'
})
```

## Definition

```ts
function fromRpc(
  signature: {
    r: Hex.Hex;
    s: Hex.Hex;
    yParity?: Hex.Hex | undefined;
    v?: Hex.Hex | undefined;
},
): Signature
```

**Source:** [src/core/Signature.ts](https://github.com/wevm/ox/blob/main/src/core/Signature.ts#L1010)

## Parameters

### signature

* **Type:** `{
    r: Hex.Hex;
    s: Hex.Hex;
    yParity?: Hex.Hex | undefined;
    v?: Hex.Hex | undefined;
  }`

The [`Signature.Rpc`](/api/Signature/types#rpc) to convert.

## Return Type

The converted [`Signature.Signature`](/api/Signature/types#signature).

`Signature`
