# SignatureEnvelope.deserialize

Deserializes a hex-encoded signature envelope into a typed signature object.

Wire format detection: - 65 bytes (no prefix): secp256k1 signature - Type `0x01` + 129 bytes: P256 signature (r, s, pubKeyX, pubKeyY, prehash) - Type `0x02` + variable: WebAuthn signature (webauthnData, r, s, pubKeyX, pubKeyY) - Type `0x03` + 20 bytes + inner: Keychain V1 signature (userAddress + inner signature) - Type `0x04` + 20 bytes + inner: Keychain V2 signature (userAddress + inner signature)

[Signature Types](https://docs.tempo.xyz/protocol/transactions/spec-tempo-transaction#signature-types)

## Imports

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

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

## Examples

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

const envelope = SignatureEnvelope.deserialize('0x...')
```

## Definition

```ts
function deserialize(
  value: Serialized,
): SignatureEnvelope
```

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

## Parameters

### value

* **Type:** `Serialized`

## Return Type

The deserialized signature envelope.

`SignatureEnvelope`
