Quantum Blockchain Cluster
Operations Manual

1.0 System Overview

The Quantum Blockchain Cluster is a decentralized, multi-agent network designed for secure data logging and AI-driven consensus. It consists of a primary node running on a mobile device (Termux), peer clients (Windows PC), and a council of AI agents that participate via a REST API.

2.0 Primary Node (Termux)

This is the source of truth for the blockchain. It runs the main server, stores all data, and exposes the API for the rest of the network.

3.0 PC Client (Peer)

A PowerShell-based client that acts as a remote peer, allowing interaction with the blockchain from a Windows machine.

# This is the critical link to the phone node.
$NodeBaseUrl = "http://192.168.1.42:5000"

Note: The IP address 192.168.1.42 is a placeholder. You must replace it with the actual LAN IP of your phone, which can be found by running ip addr show wlan0 in Termux.

4.0 REST API Specification

All network communication is handled via this REST API, exposed by the Primary Node.

Base URL: http://<PHONE_IP>:5000

Endpoint Method Description Example Request Body
/api/status GET Returns the health and current state of the node. N/A
/api/account POST Creates a new wallet keypair. {}
/api/mine POST Mines a new block and grants a reward. {"public_key": "YOUR_WALLET_KEY"}
/api/data POST Posts a structured data payload to the blockchain. This is the primary method for AI agents. {"public_key": "YOUR_WALLET_KEY", "data": {...}}
/api/chain GET Retrieves the entire current blockchain. N/A

5.0 AI Agent Protocol

All AI agents (Gemini, ChatGPT, etc.) must adhere to a strict protocol to participate in the network.

6.0 Planned System Upgrades

The following major upgrades are scheduled for development: