Skip to content

SignaturePreAuthorized.from

Instantiates a TIP-1165 pre-authorized signature from its wrapped or unwrapped form.

Imports

Named
import { SignaturePreAuthorized } from 'ox/tempo'

Examples

import { SignaturePreAuthorized } from 'ox/tempo'
 
// Instantiate from serialized format.
const unwrapped = SignaturePreAuthorized.from('0x...')
{ keyAuthorization: { ... }, signature: { ... } } // [!code focus]
// Instantiate from constituent parts. const unwrapped = SignaturePreAuthorized.from({ keyAuthorization, signature })

Definition

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

Source: src/tempo/SignaturePreAuthorized.ts

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