• Convert a byte array to a big integer

    Parameters

    • buffer: Uint8Array

      Byte array to convert

    • le: boolean = false

      Whether to use little-endian encoding

    Returns bigint