function decodeResult
decodeResult(
options: OutputOptions | undefined,
encodedMessage: string,
multi: boolean,
): ArrayBuffer

Decode a string from encoded form. If the text is recognized as Multibase, the encoding format is there, otherwise the options argument rules.

Parameters

options: OutputOptions | undefined
encodedMessage: string
multi: boolean
  • whether this is for a multikey/multibase environment or not

Return Type

ArrayBuffer

Usage

import { decodeResult } from "lib/utils.ts";