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 signature (userAddress + inner signature)
Imports
Named
import { SignatureEnvelope } from 'ox/tempo'Examples
import { SignatureEnvelope } from 'ox/tempo'
const envelope = SignatureEnvelope.deserialize('0x...')Definition
function deserialize(
serialized: Serialized,
): SignatureEnvelopeSource: src/tempo/SignatureEnvelope.ts
Parameters
serialized
- Type:
Serialized
The hex-encoded signature envelope to deserialize.
Return Type
The deserialized signature envelope.
SignatureEnvelope

