Skip to content

miniproto.tl.codec.encode_int256

encode_int256(value: int) -> bytes

Encode an unsigned 256-bit TL integer.

Parameters:

  • value (int) – Integer in the inclusive range 0 through 2**256 - 1.

Returns:

  • bytes – Thirty-two little-endian bytes.