A function that, given a string, can derive the bytes represented by that string.

Example

A decoder function that converts bytes to hexadecimal
representation would return `new Uint8Array([0xde, 0xad, 0xbe, 0xef])` when
given the string `'deadbeef'`.
interface Decoder ((input) => Uint8Array)
  • Parameters

    • input: string

    Returns Uint8Array