Function bigIntToBytes

  • Turns a bigint into a Uint8ClampedArray by converting it to a hexadecimal string then turning each digit into a pair of bytes.

    Parameters

    • bigInt: bigint

    Returns Uint8ClampedArray