• Converts a buffer of bytes to a bigint using big-endian byte order. It accepts 'Buffer' or 'Uint8Array'.

    Parameters

    • value: Uint8Array | Buffer

      The buffer to convert.

    Returns bigint

    The bigint representation of the buffer's contents.