base32.decodeDNSCurve

Decodes a base32-encoded string into bytes using the DNSCurve alphabet.

Syntax

decode(string)

Parameters

Return value

A Uint8Array with decoded bytes.

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

Example

base32.decodeDNSCurve("04107zs")
Uint8Array [1, 2, 3, 255]