# Signature.fromBytes

Deserializes a [`Bytes.Bytes`](/api/Bytes/types#bytes) signature into a structured [`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
// @noErrors
import { Signature } from 'ox'

Signature.fromBytes(new Uint8Array([128, 3, 131, ...]))
// @log: { r: '0x6e10...', s: '0x4a90...', yParity: 0 }
```

## Definition

```ts
function fromBytes(
  signature: Bytes.Bytes,
): Signature
```

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

## Parameters

### signature

* **Type:** `Bytes.Bytes`

The serialized signature.

## Return Type

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

`Signature`
