Function bytesToBigInt

  • Convert a Uint8Array to a bigint.

    To convert a Uint8Array to a number instead, use bytesToNumber. To convert a two's complement encoded Uint8Array to a bigint, use bytesToSignedBigInt.

    Returns

    The bigint.

    Parameters

    • bytes: Uint8Array

      The bytes to convert to a bigint.

    Returns bigint