Function bigToBytes

  • Converts a BigNumber to a Uint8Array with a length prefix.

    The resulting Uint8Array structure:

    • The first byte is the length of the BigNumber in bytes.
    • The remaining bytes represent the BigNumber itself.

    Returns

    Uint8Array representation of the BigNumber.

    Parameters

    • val: BigNumber

      The BigNumber to convert.

    Returns Uint8Array

Generated using TypeDoc