[WIP] Refactor and organize cryptoknight-beta project structure #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.
Original prompt
Copilot said: Of course. Here is a concise and
Of course. Here is a concise and actionable prompt for the GitHub Copilot Agent, designed to capture all the requirements from your detailed project description. This prompt structures the request into clear sections for file organization, component-specific tasks, and overall project setup.
GitHub Copilot Agent Prompt:
Your task is to structure and enhance a Python-based surveillance system called "cryptoknight-beta". The system operates in a three-stage pipeline: an Edge Node, an Untrusted Server, and a Backend Server. You will be given five initial Python files (app.py, detect.py, he.py, sender.py, receiver.py) and a list of dependencies.
Refactor and expand the provided codebase to create the complete, operational pipeline, organizing the files into a logical structure for deployment across three separate machines.
First, organize the project files into the following directory structure. Create new files as specified.
Code
/cryptoknight-beta
|-- edge_node/
| |-- app.py # (Modify) Orchestrator for the edge device
| |-- detect.py # (Modify) YOLO detection script
| |-- he.py # (Modify) Homomorphic encryption script
| |-- sender.py # (Modify) Sends data to Untrusted & Backend servers
|
|-- untrusted_server/
| |-- receiver.py # (New/Modify) Receives data from the edge
| |-- processor.py # (New) Performs HE data processing
| |-- sender.py # (New/Modify) Sends processed data to the backend
| |-- app.py # (New) Main application to run the untrusted server
|
|-- backend_server/
| |-- receiver.py # (New/Modify) Receives data from Edge & Untrusted servers
| |-- app.py # (New) Main Flask/Dash app for the dashboard
| |-- database.py # (New) SQLite database setup and operations
| |-- decrypt.py # (New) Handles decryption of HE and standard data
| |-- templates/
| | |-- index.html # (New) Dashboard UI
| |-- static/
| |-- styles.css # (New) CSS for the dashboard
|
|-- requirements.txt # (New) Python dependencies
|-- README.md # (New) Project setup and usage instructions
Modify the existing files and create new ones to meet the following specifications.
A. Edge Node (edge_node/)
B. Untrusted Server (untrusted_server/)
C. Backend Server (backend_server/)
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.