Function bigIntToBytes

  • Convert a bigint to a Uint8Array.

    This assumes that the bigint is an unsigned integer. To convert a signed bigint instead, use signedBigIntToBytes.

    Returns

    The bytes as Uint8Array.

    Parameters

    • value: bigint

      The bigint to convert to bytes.

    Returns Uint8Array