# SignaturePreAuthorized.unwrap

Parses a [TIP-1165](https://tips.sh/1165) pre-authorized signature into its keychain signature and signed key authorization.

Decoding is strict: the value must end with [`SignaturePreAuthorized.magicBytes`](/tempo/reference/SignaturePreAuthorized), and the rest must be one canonical RLP list of exactly two items with no trailing bytes.

## Imports

:::code-group
```ts [Named]
import { SignaturePreAuthorized } from 'ox/tempo'
```

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

## Examples

```ts twoslash
// @noErrors
import { SignaturePreAuthorized } from 'ox/tempo'

const { keyAuthorization, signature } =
  SignaturePreAuthorized.unwrap('0x...')
```

## Definition

```ts
function unwrap(
  wrapped: Wrapped,
): Unwrapped
```

**Source:** [src/tempo/SignaturePreAuthorized.ts](https://github.com/wevm/ox/blob/main/src/tempo/SignaturePreAuthorized.ts#L143)

## Parameters

### wrapped

* **Type:** `Wrapped`

Wrapped pre-authorized signature to parse.

## Return Type

Unwrapped pre-authorized signature.

`Unwrapped`
