base32.decodeZooko

Decodes a base32-encoded string into bytes using the Zooko alphabet (also known as z-base-32).

Syntax

decodeZooko(string)

Parameters

Return value

A Uint8Array with decoded bytes.

Throws an error if the string is not a valid base64 string.

Example

base32.decodeZooko("yrby89a")
Uint8Array [1, 2, 3, 255]