• Convert a buffer to a big integer

    Parameters

    • buffer: Uint8Array

      Buffer to convert

    • le: boolean = false

      Whether to use little-endian encoding

    Returns bigint