# SignaturePreAuthorized.assert

Asserts that a value is a valid pre-authorized signature.

A wrapped value must end with [`SignaturePreAuthorized.magicBytes`](/tempo/reference/SignaturePreAuthorized) and decode strictly. An unwrapped value must hold a V2 keychain signature with a primitive inner signature, and a signed key authorization.

## Imports

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

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

## Examples

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

SignaturePreAuthorized.assert('0xdeadbeef')
// @error: InvalidWrappedSignatureError: Value `0xdeadbeef` is an invalid pre-authorized signature.
```

## Definition

```ts
function assert(
  value: Unwrapped | Wrapped,
): void
```

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

## Parameters

### value

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

The value to assert.

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

`void`
