edgeport - v1.0.3
    Preparing search index...

    Function fromBase32

    • 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.

      Parameters

      • s: string

        The base32 string.

      Returns Uint8Array

      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])));