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

    Function dataToAlphabet

    • Convert bytes to an alphabet string using a base and alphabet function. Matches Rust data_to_alphabet function.

      Parameters

      • buf: Uint8Array

        Input bytes

      • base: number

        Target base

      • toAlphabet: (n: number) => string

        Function to convert index to character

      Returns string

      String of alphabet characters