Function bigIntToBytes

  • bigIntToBytes converts a BigInt to a big-endian Uint8Array for encoding.

    Returns

    A byte array containing the big-endian encoding of the input bigint

    Parameters

    • bi: number | bigint

      The bigint to convert.

    • size: number

      The size of the resulting byte array.

    Returns Uint8Array

Generated using TypeDoc