Function bigIntToBytes

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

    Parameters

    • bi: number | bigint

      The bigint to convert.

    • size: number

      The size of the resulting byte array.

    Returns Uint8Array

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

Generated using TypeDoc