Skip to content

SignaturePreAuthorized.unwrap

Parses a TIP-1165 pre-authorized signature into its keychain signature and signed key authorization.

Decoding is strict: the value must end with SignaturePreAuthorized.magicBytes, and the rest must be one canonical RLP list of exactly two items with no trailing bytes.

Imports

Named
import { SignaturePreAuthorized } from 'ox/tempo'

Examples

import { SignaturePreAuthorized } from 'ox/tempo'
 
const { keyAuthorization, signature } =
  SignaturePreAuthorized.unwrap('0x...')

Definition

function unwrap(
  wrapped: Wrapped,
): Unwrapped

Source: src/tempo/SignaturePreAuthorized.ts

Parameters

wrapped

  • Type: Wrapped

Wrapped pre-authorized signature to parse.

Return Type

Unwrapped pre-authorized signature.

Unwrapped