Skip to content

SignaturePreAuthorized.assert

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

A wrapped value must end with SignaturePreAuthorized.magicBytes and decode strictly. An unwrapped value must hold a V2 keychain signature with a primitive inner signature, and a signed key authorization.

Imports

Named
import { SignaturePreAuthorized } from 'ox/tempo'

Examples

import { SignaturePreAuthorized } from 'ox/tempo'
 
SignaturePreAuthorized.assert('0xdeadbeef')
InvalidWrappedSignatureError: Value `0xdeadbeef` is an invalid pre-authorized signature.

Definition

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

Source: src/tempo/SignaturePreAuthorized.ts

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