• Convert a big integer to a buffer

    Parameters

    • value: bigint

      Value to convert

    • length: number = 0

      Length of the resulting buffer (by default it's the minimum required)

    • le: boolean = false

      Whether to use little-endian encoding

    Returns Uint8Array