• Converts a byte array to a Num (bigint) assuming little-endian order.

    Parameters

    Returns Num

    A Num (bigint) representing the numeric value.

    const num = numFromBytes(new Uint8Array([57, 48, 0, 0])); // Outputs 12345n