BC-Seedtool-CLI TypeScript Library - v1.0.0-alpha.16
    Preparing search index...

    Function dataToBase

    • Convert byte values to a different base range [0, base-1]. Each byte (0-255) is scaled proportionally to the target base. Matches Rust data_to_base function.

      Parameters

      • buf: Uint8Array

        Input bytes

      • base: number

        Target base (e.g., 6 for base-6)

      Returns Uint8Array

      Array of values in range [0, base-1]