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

    Parameters

    Returns Num

    A Num (bigint) representing the numeric value.

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