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

    Function sha256DeterministicRandom

    • Generate deterministic random data from entropy using SHA256. If n <= 32, returns the first n bytes of SHA256(entropy). Matches Rust sha256_deterministic_random function.

      Parameters

      • entropy: Uint8Array

        The entropy bytes to hash

      • n: number

        Number of bytes to return (must be <= 32)

      Returns Uint8Array

      Error if n > 32