{"id":25814786,"url":"https://github.com/redx94/quantumblockchainautomation","last_synced_at":"2026-04-24T12:32:37.980Z","repository":{"id":259475666,"uuid":"855533636","full_name":"redx94/QuantumBlockchainAutomation","owner":"redx94","description":"A revolutionary initiative combining Quantum Computing and Blockchain Technology to establish a secure, decentralized system for quantum-powered data integrity. This project pioneers the fusion of advanced quantum randomness with blockchain's immutability, ensuring unmatched reliability and security for distributed data processes","archived":false,"fork":false,"pushed_at":"2024-10-24T16:49:38.000Z","size":243,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-09T22:42:50.441Z","etag":null,"topics":["blockchain","blockchain-immutability","cryptography","data-integrity","decentralization","distributed-systems","ethereum","flask-dashboard","ganache","ibm-quantum-experience","qiskit","quantum","quantum-blockchain-fusion","quantum-randomness","quantum-security","quatum-cryptography","smart-contracts","zeromq"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redx94.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-11T02:54:54.000Z","updated_at":"2024-12-25T12:01:27.000Z","dependencies_parsed_at":"2024-10-25T21:37:50.974Z","dependency_job_id":"ff998f02-6dc9-49fa-b995-d9e5274eabd8","html_url":"https://github.com/redx94/QuantumBlockchainAutomation","commit_stats":null,"previous_names":["redx94/quantumblockchainautomation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/redx94/QuantumBlockchainAutomation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redx94%2FQuantumBlockchainAutomation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redx94%2FQuantumBlockchainAutomation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redx94%2FQuantumBlockchainAutomation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redx94%2FQuantumBlockchainAutomation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redx94","download_url":"https://codeload.github.com/redx94/QuantumBlockchainAutomation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redx94%2FQuantumBlockchainAutomation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32223933,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T10:26:35.452Z","status":"ssl_error","status_checked_at":"2026-04-24T10:25:27.643Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","blockchain-immutability","cryptography","data-integrity","decentralization","distributed-systems","ethereum","flask-dashboard","ganache","ibm-quantum-experience","qiskit","quantum","quantum-blockchain-fusion","quantum-randomness","quantum-security","quatum-cryptography","smart-contracts","zeromq"],"created_at":"2025-02-28T03:37:35.710Z","updated_at":"2026-04-24T12:32:37.973Z","avatar_url":"https://github.com/redx94.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌟 Quantum Blockchain Automation 🌟\n\n## Project Overview\n\nWelcome to **Quantum Blockchain Automation**. This project aims to create a decentralized, quantum-powered data integrity system. The combination of **Quantum Computing** and **Blockchain Technology** provides a unique approach to achieving unprecedented levels of security and reliability. Quantum computing generates truly random numbers, while blockchain ensures that data remains immutable and distributed, offering a powerful solution for data integrity.\n\nThis repository holds everything you need to run a **Distributed Quantum Random Number Generator (QRNG)** that immutably logs results to the blockchain.\n\nThis project demonstrates a **decentralized quantum system**. First, it generates random numbers using quantum computing. Next, these numbers are aggregated across multiple nodes. Finally, the data is logged securely to a blockchain for immutable records.\n\n### 🤖 Why Quantum and Blockchain?\n\n1. **Quantum Computing**: Leverages quantum circuits to generate truly random numbers using **Qiskit**.\n2. **Blockchain**: Uses **Ethereum's blockchain (via Ganache)** to ensure immutability and trust by recording and logging data.\n3. **Decentralization**: With **ZeroMQ**, quantum computations are distributed across multiple nodes, enabling a decentralized network for processing quantum data.\n\nThe repository automates everything from **smart contract deployment** to **node setup** and **blockchain integration**. For example, the automation scripts handle the entire process, from deploying blockchain contracts via Truffle, configuring node communication with ZeroMQ, to managing secure logging of quantum random numbers.\n\n---\n\n## 📜 Table of Contents\n\n- [Project Overview](#project-overview)\n- [Components](#components)\n- [Setup and Installation](#setup-and-installation)\n- [Automation Details](#automation-details)\n- [Interactive Dashboard](#interactive-dashboard)\n- [Live Quantum Integration](#live-quantum-integration)\n- [How to Use](#how-to-use)\n- [Project Vision](#project-vision)\n\n---\n\n## ⚙️ Components\n\n### 1. **Quantum Random Number Generation (QRNG)** 🔑\n\n- **Qiskit-based QRNG**: Generates random numbers using quantum circuits with Hadamard gates.\n- Each node runs a quantum circuit and contributes random data.\n\n### 2. **ZeroMQ for Distributed Nodes** 🌐\n\n- **ZeroMQ**: Facilitates seamless communication between nodes, allowing data to flow across different entities.\n\n### 3. **Blockchain Integration with Ethereum (Ganache)** ⛓️\n\n- **Smart Contracts** (written in Solidity): Ensure that random data is logged securely and immutably to the blockchain.\n\n### 4. **Automation via PowerShell \u0026 Batch Scripts** 🤖\n\n- **PowerShell** and **Batch Scripts**: Automate tasks including dependency installation, smart contract deployment, and node operations.\n\n### 5. **Interactive Dashboard** 📊\n\n- A **web-based dashboard** visualizes real-time quantum randomness and blockchain transactions. Built using **Flask** for backend API integration and **Chart.js** for visualization.\n\n---\n\n## ⚡ Setup and Installation\n\n### Prerequisites\n\n- **Ganache**: Local Ethereum blockchain for testing.\n- **Python**: Used for running quantum simulations and node operations.\n- **Node.js** and **Truffle**: For smart contract compilation and deployment.\n- **Git**: For cloning the repository.\n\n### Installation Steps\n\n1. **Clone the Repository**:\n\n    ```bash\n    git clone https://github.com/redx94/QuantumBlockchainAutomation.git\n    cd QuantumBlockchainAutomation\n    ```\n\n2. **Install Dependencies**:\n    - For Python dependencies:\n\n      ```bash\n      pip install -r requirements.txt\n      ```\n\n    - For Node.js dependencies:\n\n      ```bash\n      npm install\n      ```\n\n3. **Ensure Ganache is Running**:\n    - Launch **Ganache** and make sure it's available at `http://127.0.0.1:7545`.\n\n4. **Deploy Smart Contracts**:\n    - Use **Truffle** to deploy contracts to Ganache.\n\n    ```bash\n    truffle migrate --reset --network development\n    ```\n\n5. **Run Automation Scripts**:\n    - Use the `.bat` file for automatic deployment:\n\n    ```bash\n    Quantum_Automation.bat\n    ```\n\n6. **Start the Interactive Dashboard**:\n    - Run the **Flask** server to serve the dashboard.\n    ```bash\n    python dashboard.py\n    ```\n    - Open your browser and navigate to `http://127.0.0.1:5000` to view the dashboard.\n\n    - Ensure **Chart.js** is included in the HTML file to correctly display the data visualization.\n\n    ```html\n    \u003cscript src=\"https://cdn.jsdelivr.net/npm/chart.js\"\u003e\u003c/script\u003e\n    ```\n\n---\n\n## 🤖 Automation Details\n\n### **PowerShell \u0026 Batch Script Automation** 🛠️\n\n- **Quantum_Setup.ps1**:\n  - Handles smart contract deployment, updates the aggregator script with the correct contract address and ABI, and runs nodes and aggregator. The aggregator script gathers quantum random numbers from different nodes and compiles them for secure logging on the blockchain, ensuring that all data points are accurately recorded.\n  - Installs necessary dependencies, including `web3.py` and `Truffle`, if not already present.\n\n- **Quantum_Automation.bat**:\n  - Simplifies the setup into a single command.\n  - Clones the repository, runs the PowerShell script, and provides a seamless interface for setup.\n\n### **Deployment Steps Handled by Automation:**\n\n1. **Ganache** startup and connection.\n2. **Truffle** compilation and smart contract deployment.\n3. **Node and Aggregator** startup.\n4. **ZeroMQ** communication between nodes.\n5. **Blockchain Logging** of quantum random data.\n\n---\n\n## 📊 Interactive Dashboard\n\nThe project includes an **interactive web dashboard** to provide visualization for real-time quantum randomness and blockchain transactions.\n\n### Key Features:\n- **Live Randomness Tracking**: Real-time tracking of the quantum-generated random numbers.\n- **Blockchain Status**: A table showcasing recent blockchain transactions involving quantum random numbers.\n\n### Steps to Set Up the Dashboard:\n1. **Run the Flask API Server** (`dashboard.py`) to enable data access for the dashboard.\n2. **Frontend** (in `dashboard/index.html`) visualizes the random data using **Chart.js**.\n\n    - **Note**: Ensure you have Flask installed to run the server.\n    ```bash\n    pip install Flask\n    ```\n\n    - The frontend polls the Flask server every few seconds to update the charts.\n\n    ```javascript\n    async function fetchNodeData() {\n        const response = await fetch('/api/nodes');\n        const data = await response.json();\n        return data.nodes.map(node =\u003e parseInt(node.last_random_number, 2));\n    }\n    ```\n\n---\n\n## ⚛️ Live Quantum Integration\n\nThis project allows you to switch from a local quantum simulator to a **real quantum device**.\n\n### Steps for IBM Q Integration:\n1. **Sign up** for IBM Quantum Experience and get an **API key**.\n2. Add your credentials to `config/ibm_credentials.json`.\n\n    ```json\n    {\n        \"api_key\": \"YOUR_IBM_API_KEY\"\n    }\n    ```\n\n3. Modify `qrng_module.py` to use IBM's live backend.\n\n    ```python\n    from qiskit import IBMQ\n    IBMQ.load_account()  # Replace this line with your actual IBM Quantum Experience token\n    provider = IBMQ.get_provider(hub='ibm-q')\n    simulator = provider.get_backend('ibmq_qasm_simulator')\n    ```\n\n4. Update `requirements.txt` to include `qiskit-ibmq-provider`:\n\n    ```\n    qiskit\n    qiskit-ibmq-provider\n    ```\n\nThis upgrade allows quantum randomness generated by real quantum hardware to be used in blockchain transactions, increasing unpredictability and security.\n\n---\n\n## 🚀 How to Use\n\n### Running the System\n\n1. **Clone the Repository**, **Install Dependencies**, and run the `Quantum_Automation.bat` file.\n2. **Start the Flask Server** to enable the interactive dashboard.\n3. **Access the Dashboard** in your browser to visualize the operations.\n4. Watch as the script deploys the contract, starts nodes, and logs quantum data to the blockchain.\n\n---\n\n## 🌌 Project Vision\n\nThe **Quantum Blockchain Automation** project sets the foundation for a **decentralized, quantum-powered future** where data integrity is ensured through the combination of blockchain and quantum randomness. Our goal is to create a system where **quantum-generated randomness** can be leveraged for **security**, **data integrity**, and **scientific simulations**, all while maintaining decentralized control.\n\nWe envision this system as the first step toward **quantum data clouds**, where distributed quantum computing resources are used to generate, aggregate, and secure data in ways that weren’t possible before.\n\n### 💡 Open the Door to New Possibilities!\n\nImagine a world where **quantum-level randomness** secures everything from **financial systems** and **decentralized games** to **voting systems**. For instance, picture a blockchain-based voting system where quantum-generated randomness ensures voter anonymity and prevents tampering, or a financial application where quantum-level security protects transactions from any cyber threats. These are just a few examples of how quantum technology could revolutionize our daily lives.\n\nWe invite developers to **fork** this project, **experiment**, and **contribute** to making a quantum-secured future a reality!! 🚀✨\n\n---\n\n© 2024 Reece Dixon. All Rights Reserved.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredx94%2Fquantumblockchainautomation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredx94%2Fquantumblockchainautomation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredx94%2Fquantumblockchainautomation/lists"}