def encode_int(s: int) -> bytes:
    """Encodes int to little endian bytes

    Args:
        s (int): int to encode

    Returns:
        bytes: encoded int in little endian by
    """
    return s.to_bytes(4, 'little')