RAILGUN Reloaded
    Preparing search index...

    Base-37 encoding and decoding for wallet source identifiers.

    Index
    • Encodes a wallet source string into a base-37 representation as a Uint8Array. Each character is mapped to the WALLET_SOURCE_CHARSET (space + 0-9 + a-z = 37 chars). The result is a big-endian byte representation of the base-37 number.

      Parameters

      • walletSource: string

        The wallet source string to encode (max 16 chars, lowercase)

      Returns Uint8Array

      Uint8Array containing the encoded wallet source

    • Decodes a base-37 encoded Uint8Array back to a wallet source string.

      Parameters

      • encoded: Uint8Array

        The encoded wallet source bytes (big-endian base-37 number)

      Returns string

      The decoded wallet source string