# SignaturePreAuthorized.from

Instantiates a [TIP-1165](https://tips.sh/1165) pre-authorized signature from its wrapped or unwrapped form.

## 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'

// Instantiate from serialized format. // [!code focus]
const unwrapped = SignaturePreAuthorized.from('0x...') // [!code focus]
// @log: { keyAuthorization: { ... }, signature: { ... } } // [!code focus]

// Instantiate from constituent parts. // [!code focus]
const unwrapped = SignaturePreAuthorized.from({
  // [!code focus]
  keyAuthorization, // [!code focus]
  signature // [!code focus]
}) // [!code focus]
```

## Definition

```ts
function from(
  value: Unwrapped | Wrapped,
): Unwrapped
```

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

## Parameters

### value

* **Type:** `Unwrapped | Wrapped`

Wrapped or unwrapped pre-authorized signature.

#### value.keyAuthorization

* **Type:** `Signed`

Root key's signed authorization of the access key.

#### value.signature

* **Type:** `Keychain`

V2 keychain signature by the access key.

## Return Type

Unwrapped pre-authorized signature.

`Unwrapped`
