Decodes an RFC 4648 base32 string (padding tolerated) to bytes.
Used to decode an nkey seed or public string back to its prefix + payload + checksum bytes.
The base32 string.
The decoded bytes.
If the input contains a non-base32 character.
1.0.0
import { fromBase32, toBase32 } from 'edgeport/nats';const bytes = fromBase32(toBase32(new Uint8Array([9]))); Copy
import { fromBase32, toBase32 } from 'edgeport/nats';const bytes = fromBase32(toBase32(new Uint8Array([9])));
Decodes an RFC 4648 base32 string (padding tolerated) to bytes.
Used to decode an nkey seed or public string back to its prefix + payload + checksum bytes.