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

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

Decodes a 64-byte compact byte representation (`r ++ s`, big-endian) into a [`Signature.Signature`](/docs/utilities/signature/types#signature) (without recovery).

## Imports

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

## Examples

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

const signature = Signature.fromCompactBytes(
  new Uint8Array(64)
)
// @log: { r: '0x00...0000', s: '0x00...0000' }
```

## Definition

```ts
function fromCompactBytes(
  bytes: Bytes.Bytes,
): Signature<false>
```

## Parameters

### bytes

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

The 64-byte compact representation.

## Return Type

The decoded [`Signature.Signature`](/docs/utilities/signature/types#signature).

`Signature<false>`
