Function u64ToBytes

  • Converts an unsigned 64-bit integer (u64) BigInt into a Uint8Array.

    Throws

    Will throw an error if the input value is not within the valid u64 range (0 to 18,446,744,073,709,551,615)

    Returns

    A Uint8Array containing the serialized u64 BigInt value

    Parameters

    • val: bigint

      The BigInt to convert

    Returns Uint8Array

Generated using TypeDoc