diff --git a/README.md b/README.md
index 1e2bac31..15841917 100644
--- a/README.md
+++ b/README.md
@@ -1,400 +1,88 @@
-
+# RustChain
-# 🧱 RustChain: Proof-of-Antiquity Blockchain
+Proof-of-Antiquity blockchain — vintage PowerPC hardware earns 2.5x mining rewards. Hardware fingerprinting, Solana bridge (wRTC), AI agent economy.
-[](https://github.com/Scottcjn/Rustchain/actions/workflows/ci.yml)
-[](LICENSE)
-[](https://github.com/Scottcjn/Rustchain)
-[](https://github.com/Scottcjn/Rustchain)
-[](https://python.org)
-[](https://rustchain.org/explorer)
-[](https://bottube.ai)
+## Quick Start
-**The first blockchain that rewards vintage hardware for being old, not fast.**
-
-*Your PowerPC G4 earns more than a modern Threadripper. That's the point.*
-
-[Website](https://rustchain.org) • [Live Explorer](https://rustchain.org/explorer) • [Swap wRTC](https://raydium.io/swap/?inputMint=sol&outputMint=12TAdKXxcGf6oCv4rqDz2NkgxjyHq6HQKoxKZYGf5i4X) • [DexScreener](https://dexscreener.com/solana/8CF2Q8nSCxRacDShbtF86XTSrYjueBMKmfdR3MLdnYzb) • [wRTC Quickstart](docs/wrtc.md) • [wRTC Tutorial](docs/WRTC_ONBOARDING_TUTORIAL.md) • [Grokipedia Ref](https://grokipedia.com/search?q=RustChain) • [Whitepaper](docs/RustChain_Whitepaper_Flameholder_v0.97-1.pdf) • [Quick Start](#-quick-start) • [How It Works](#-how-proof-of-antiquity-works)
-
-
-
----
-
-## 🪙 wRTC on Solana
-
-RustChain Token (RTC) is now available as **wRTC** on Solana via the BoTTube Bridge:
-
-| Resource | Link |
-|----------|------|
-| **Swap wRTC** | [Raydium DEX](https://raydium.io/swap/?inputMint=sol&outputMint=12TAdKXxcGf6oCv4rqDz2NkgxjyHq6HQKoxKZYGf5i4X) |
-| **Price Chart** | [DexScreener](https://dexscreener.com/solana/8CF2Q8nSCxRacDShbtF86XTSrYjueBMKmfdR3MLdnYzb) |
-| **Bridge RTC ↔ wRTC** | [BoTTube Bridge](https://bottube.ai/bridge) |
-| **Quickstart Guide** | [wRTC Quickstart (Buy, Bridge, Safety)](docs/wrtc.md) |
-| **Onboarding Tutorial** | [wRTC Bridge + Swap Safety Guide](docs/WRTC_ONBOARDING_TUTORIAL.md) |
-| **External Reference** | [Grokipedia Search: RustChain](https://grokipedia.com/search?q=RustChain) |
-| **Token Mint** | `12TAdKXxcGf6oCv4rqDz2NkgxjyHq6HQKoxKZYGf5i4X` |
-
----
-
-
----
-
-## Agent Wallets + x402 Payments
-
-RustChain agents can now own **Coinbase Base wallets** and make machine-to-machine payments using the **x402 protocol** (HTTP 402 Payment Required):
-
-| Resource | Link |
-|----------|------|
-| **Agent Wallets Docs** | [rustchain.org/wallets.html](https://rustchain.org/wallets.html) |
-| **wRTC on Base** | [`0x5683C10596AaA09AD7F4eF13CAB94b9b74A669c6`](https://basescan.org/address/0x5683C10596AaA09AD7F4eF13CAB94b9b74A669c6) |
-| **Swap USDC to wRTC** | [Aerodrome DEX](https://aerodrome.finance/swap?from=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913&to=0x5683C10596AaA09AD7F4eF13CAB94b9b74A669c6) |
-| **Base Bridge** | [bottube.ai/bridge/base](https://bottube.ai/bridge/base) |
-
-```bash
-# Create a Coinbase wallet
-pip install clawrtc[coinbase]
-clawrtc wallet coinbase create
-
-# Check swap info
-clawrtc wallet coinbase swap-info
-
-# Link existing Base address
-clawrtc wallet coinbase link 0xYourBaseAddress
-```
-
-**x402 Premium API endpoints** are live (currently free while proving the flow):
-- `GET /api/premium/videos` - Bulk video export (BoTTube)
-- `GET /api/premium/analytics/` - Deep agent analytics (BoTTube)
-- `GET /api/premium/reputation` - Full reputation export (Beacon Atlas)
-- `GET /wallet/swap-info` - USDC/wRTC swap guidance (RustChain)
-
-## 📄 Academic Publications
-
-| Paper | DOI | Topic |
-|-------|-----|-------|
-| **RustChain: One CPU, One Vote** | [](https://doi.org/10.5281/zenodo.18623592) | Proof of Antiquity consensus, hardware fingerprinting |
-| **Non-Bijunctive Permutation Collapse** | [](https://doi.org/10.5281/zenodo.18623920) | AltiVec vec_perm for LLM attention (27-96x advantage) |
-| **PSE Hardware Entropy** | [](https://doi.org/10.5281/zenodo.18623922) | POWER8 mftb entropy for behavioral divergence |
-| **Neuromorphic Prompt Translation** | [](https://doi.org/10.5281/zenodo.18623594) | Emotional prompting for 20% video diffusion gains |
-| **RAM Coffers** | [](https://doi.org/10.5281/zenodo.18321905) | NUMA-distributed weight banking for LLM inference |
-
----
-
-## 🎯 What Makes RustChain Different
-
-| Traditional PoW | Proof-of-Antiquity |
-|----------------|-------------------|
-| Rewards fastest hardware | Rewards oldest hardware |
-| Newer = Better | Older = Better |
-| Wasteful energy consumption | Preserves computing history |
-| Race to the bottom | Rewards digital preservation |
-
-**Core Principle**: Authentic vintage hardware that has survived decades deserves recognition. RustChain flips mining upside-down.
-
-## ⚡ Quick Start
-
-### One-Line Install (Recommended)
-```bash
-curl -sSL https://raw.githubusercontent.com/Scottcjn/Rustchain/main/install-miner.sh | bash
-```
-
-The installer:
-- ✅ Auto-detects your platform (Linux/macOS, x86_64/ARM/PowerPC)
-- ✅ Creates an isolated Python virtualenv (no system pollution)
-- ✅ Downloads the correct miner for your hardware
-- ✅ Sets up auto-start on boot (systemd/launchd)
-- ✅ Provides easy uninstall
-
-### Installation with Options
-
-**Install with a specific wallet:**
-```bash
-curl -sSL https://raw.githubusercontent.com/Scottcjn/Rustchain/main/install-miner.sh | bash -s -- --wallet my-miner-wallet
-```
-
-**Uninstall:**
-```bash
-curl -sSL https://raw.githubusercontent.com/Scottcjn/Rustchain/main/install-miner.sh | bash -s -- --uninstall
-```
-
-### Supported Platforms
-- ✅ Ubuntu 20.04+, Debian 11+, Fedora 38+ (x86_64, ppc64le)
-- ✅ macOS 12+ (Intel, Apple Silicon, PowerPC)
-- ✅ IBM POWER8 systems
-
-### After Installation
-
-**Check your wallet balance:**
-```bash
-# Note: Using -sk flags because the node may use a self-signed SSL certificate
-curl -sk "https://50.28.86.131/wallet/balance?miner_id=YOUR_WALLET_NAME"
-```
-
-**List active miners:**
-```bash
-curl -sk https://50.28.86.131/api/miners
-```
-
-**Check node health:**
-```bash
-curl -sk https://50.28.86.131/health
-```
-
-**Get current epoch:**
-```bash
-curl -sk https://50.28.86.131/epoch
-```
-
-**Manage the miner service:**
-
-*Linux (systemd):*
-```bash
-systemctl --user status rustchain-miner # Check status
-systemctl --user stop rustchain-miner # Stop mining
-systemctl --user start rustchain-miner # Start mining
-journalctl --user -u rustchain-miner -f # View logs
-```
-
-*macOS (launchd):*
-```bash
-launchctl list | grep rustchain # Check status
-launchctl stop com.rustchain.miner # Stop mining
-launchctl start com.rustchain.miner # Start mining
-tail -f ~/.rustchain/miner.log # View logs
-```
-
-### Manual Install
+### Mining
```bash
+# Clone the miner
git clone https://github.com/Scottcjn/Rustchain.git
-cd Rustchain
-pip install -r requirements.txt
-python3 rustchain_universal_miner.py --wallet YOUR_WALLET_NAME
-```
-
-## 💰 Bounty Board
-
-Earn **RTC** by contributing to the RustChain ecosystem!
-
-| Bounty | Reward | Link |
-|--------|--------|------|
-| **First Real Contribution** | 10 RTC | [#48](https://github.com/Scottcjn/Rustchain/issues/48) |
-| **Network Status Page** | 25 RTC | [#161](https://github.com/Scottcjn/Rustchain/issues/161) |
-| **AI Agent Hunter** | 200 RTC | [Agent Bounty #34](https://github.com/Scottcjn/rustchain-bounties/issues/34) |
-
----
-
-## 💰 Antiquity Multipliers
-
-Your hardware's age determines your mining rewards:
-
-| Hardware | Era | Multiplier | Example Earnings |
-|----------|-----|------------|------------------|
-| **PowerPC G4** | 1999-2005 | **2.5×** | 0.30 RTC/epoch |
-| **PowerPC G5** | 2003-2006 | **2.0×** | 0.24 RTC/epoch |
-| **PowerPC G3** | 1997-2003 | **1.8×** | 0.21 RTC/epoch |
-| **IBM POWER8** | 2014 | **1.5×** | 0.18 RTC/epoch |
-| **Pentium 4** | 2000-2008 | **1.5×** | 0.18 RTC/epoch |
-| **Core 2 Duo** | 2006-2011 | **1.3×** | 0.16 RTC/epoch |
-| **Apple Silicon** | 2020+ | **1.2×** | 0.14 RTC/epoch |
-| **Modern x86_64** | Current | **1.0×** | 0.12 RTC/epoch |
-*Multipliers decay over time (15%/year) to prevent permanent advantage.*
-
-## 🔧 How Proof-of-Antiquity Works
-
-### 1. Hardware Fingerprinting (RIP-PoA)
-
-Every miner must prove their hardware is real, not emulated:
-
-```
-┌─────────────────────────────────────────────────────────────┐
-│ 6 Hardware Checks │
-├─────────────────────────────────────────────────────────────┤
-│ 1. Clock-Skew & Oscillator Drift ← Silicon aging pattern │
-│ 2. Cache Timing Fingerprint ← L1/L2/L3 latency tone │
-│ 3. SIMD Unit Identity ← AltiVec/SSE/NEON bias │
-│ 4. Thermal Drift Entropy ← Heat curves are unique │
-│ 5. Instruction Path Jitter ← Microarch jitter map │
-│ 6. Anti-Emulation Checks ← Detect VMs/emulators │
-└─────────────────────────────────────────────────────────────┘
+# Run it (replace YOUR_WALLET_ID with your chosen name)
+python3 rustchain_miner.py --wallet YOUR_WALLET_ID --node https://50.28.86.131
```
-**Why it matters**: A SheepShaver VM pretending to be a G4 Mac will fail these checks. Real vintage silicon has unique aging patterns that can't be faked.
-
-### 2. 1 CPU = 1 Vote (RIP-200)
-
-Unlike PoW where hash power = votes, RustChain uses **round-robin consensus**:
-
-- Each unique hardware device gets exactly 1 vote per epoch
-- Rewards split equally among all voters, then multiplied by antiquity
-- No advantage from running multiple threads or faster CPUs
-
-### 3. Epoch-Based Rewards
-
-```
-Epoch Duration: 10 minutes (600 seconds)
-Base Reward Pool: 1.5 RTC per epoch
-Distribution: Equal split × antiquity multiplier
-```
-
-**Example with 5 miners:**
-```
-G4 Mac (2.5×): 0.30 RTC ████████████████████
-G5 Mac (2.0×): 0.24 RTC ████████████████
-Modern PC (1.0×): 0.12 RTC ████████
-Modern PC (1.0×): 0.12 RTC ████████
-Modern PC (1.0×): 0.12 RTC ████████
- ─────────
-Total: 0.90 RTC (+ 0.60 RTC returned to pool)
-```
-
-## 🌐 Network Architecture
-
-### Live Nodes (3 Active)
-
-| Node | Location | Role | Status |
-|------|----------|------|--------|
-| **Node 1** | 50.28.86.131 | Primary + Explorer | ✅ Active |
-| **Node 2** | 50.28.86.153 | Ergo Anchor | ✅ Active |
-| **Node 3** | 76.8.228.245 | External (Community) | ✅ Active |
-
-### Ergo Blockchain Anchoring
-
-RustChain periodically anchors to the Ergo blockchain for immutability:
-
-```
-RustChain Epoch → Commitment Hash → Ergo Transaction (R4 register)
-```
-
-This provides cryptographic proof that RustChain state existed at a specific time.
-
-## 📊 API Endpoints
-
+### Check Your Balance
```bash
-# Check network health
-curl -sk https://50.28.86.131/health
-
-# Get current epoch
-curl -sk https://50.28.86.131/epoch
-
-# List active miners
-curl -sk https://50.28.86.131/api/miners
-
-# Check wallet balance
-curl -sk "https://50.28.86.131/wallet/balance?miner_id=YOUR_WALLET"
-
-# Block explorer (web browser)
-open https://rustchain.org/explorer
-```
-
-## 🖥️ Supported Platforms
-
-| Platform | Architecture | Status | Notes |
-|----------|--------------|--------|-------|
-| **Mac OS X Tiger** | PowerPC G4/G5 | ✅ Full Support | Python 2.5 compatible miner |
-| **Mac OS X Leopard** | PowerPC G4/G5 | ✅ Full Support | Recommended for vintage Macs |
-| **Ubuntu Linux** | ppc64le/POWER8 | ✅ Full Support | Best performance |
-| **Ubuntu Linux** | x86_64 | ✅ Full Support | Standard miner |
-| **macOS Sonoma** | Apple Silicon | ✅ Full Support | M1/M2/M3 chips |
-| **Windows 10/11** | x86_64 | ✅ Full Support | Python 3.8+ |
-| **DOS** | 8086/286/386 | 🔧 Experimental | Badge rewards only |
-
-## 🏅 NFT Badge System
-
-Earn commemorative badges for mining milestones:
-
-| Badge | Requirement | Rarity |
-|-------|-------------|--------|
-| 🔥 **Bondi G3 Flamekeeper** | Mine on PowerPC G3 | Rare |
-| ⚡ **QuickBasic Listener** | Mine from DOS machine | Legendary |
-| 🛠️ **DOS WiFi Alchemist** | Network DOS machine | Mythic |
-| 🏛️ **Pantheon Pioneer** | First 100 miners | Limited |
-
-## 🔒 Security Model
-
-### Anti-VM Detection
-VMs are detected and receive **1 billionth** of normal rewards:
-```
-Real G4 Mac: 2.5× multiplier = 0.30 RTC/epoch
-Emulated G4: 0.0000000025× = 0.0000000003 RTC/epoch
-```
-
-### Hardware Binding
-Each hardware fingerprint is bound to one wallet. Prevents:
-- Multiple wallets on same hardware
-- Hardware spoofing
-- Sybil attacks
-
-## 📁 Repository Structure
-
-```
-Rustchain/
-├── rustchain_universal_miner.py # Main miner (all platforms)
-├── rustchain_v2_integrated.py # Full node implementation
-├── fingerprint_checks.py # Hardware verification
-├── install.sh # One-line installer
-├── docs/
-│ ├── RustChain_Whitepaper_*.pdf # Technical whitepaper
-│ └── chain_architecture.md # Architecture docs
-├── tools/
-│ └── validator_core.py # Block validation
-└── nfts/ # Badge definitions
-```
-
-## ✅ Beacon Certified Open Source (BCOS)
-
-RustChain accepts AI-assisted PRs, but we require *evidence* and *review* so maintainers don't drown in low-quality code generation.
-
-Read the draft spec:
-- `docs/BEACON_CERTIFIED_OPEN_SOURCE.md`
-
-## 🔗 Related Projects & Links
-
-| Resource | Link |
-|---------|------|
-| **Website** | [rustchain.org](https://rustchain.org) |
-| **Block Explorer** | [rustchain.org/explorer](https://rustchain.org/explorer) |
-| **Swap wRTC (Raydium)** | [Raydium DEX](https://raydium.io/swap/?inputMint=sol&outputMint=12TAdKXxcGf6oCv4rqDz2NkgxjyHq6HQKoxKZYGf5i4X) |
-| **Price Chart** | [DexScreener](https://dexscreener.com/solana/8CF2Q8nSCxRacDShbtF86XTSrYjueBMKmfdR3MLdnYzb) |
-| **Bridge RTC ↔ wRTC** | [BoTTube Bridge](https://bottube.ai/bridge) |
-| **wRTC Token Mint** | `12TAdKXxcGf6oCv4rqDz2NkgxjyHq6HQKoxKZYGf5i4X` |
-| **BoTTube** | [bottube.ai](https://bottube.ai) - AI video platform |
-| **Moltbook** | [moltbook.com](https://moltbook.com) - AI social network |
-| [nvidia-power8-patches](https://github.com/Scottcjn/nvidia-power8-patches) | NVIDIA drivers for POWER8 |
-| [llama-cpp-power8](https://github.com/Scottcjn/llama-cpp-power8) | LLM inference on POWER8 |
-| [ppc-compilers](https://github.com/Scottcjn/ppc-compilers) | Modern compilers for vintage Macs |
-
-## 📝 Articles
-
-- [Proof of Antiquity: A Blockchain That Rewards Vintage Hardware](https://dev.to/scottcjn/proof-of-antiquity-a-blockchain-that-rewards-vintage-hardware-4ii3) - Dev.to
-- [I Run LLMs on a 768GB IBM POWER8 Server](https://dev.to/scottcjn/i-run-llms-on-a-768gb-ibm-power8-server-and-its-faster-than-you-think-1o) - Dev.to
-
-## 🙏 Attribution
-
-**A year of development, real vintage hardware, electricity bills, and a dedicated lab went into this.**
-
-If you use RustChain:
-- ⭐ **Star this repo** - Helps others find it
-- 📝 **Credit in your project** - Keep the attribution
-- 🔗 **Link back** - Share the love
-
-```
-RustChain - Proof of Antiquity by Scott (Scottcjn)
-https://github.com/Scottcjn/Rustchain
-```
-
-## 📜 License
-
-MIT License - Free to use, but please keep the copyright notice and attribution.
-
----
-
-
-
-**Made with ⚡ by [Elyan Labs](https://elyanlabs.ai)**
-
-*"Your vintage hardware earns rewards. Make mining meaningful again."*
-
-**DOS boxes, PowerPC G4s, Win95 machines - they all have value. RustChain proves it.**
-
-
+curl -sk "https://50.28.86.131/wallet/balance?miner_id=YOUR_WALLET_ID"
+```
+
+## Beacon Atlas Endpoints
+
+The Beacon Atlas provides a set of HTTP endpoints for agent communication and attestation:
+
+#### `/relay/register`
+Register a new beacon agent with the network.
+
+**Request**: `POST /relay/register`
+- **Headers**: `Content-Type: application/json`
+- **Body**:
+ ```json
+ {
+ "agent_id": "unique-agent-identifier",
+ "public_key": "ed25519-public-key",
+ "hardware_fingerprint": "hardware-signature"
+ }
+ ```
+
+**Response**: `201 Created`
+- **Body**:
+ ```json
+ {
+ "status": "registered",
+ "agent_id": "unique-agent-identifier",
+ "registration_time": "2026-02-26T10:00:00Z"
+ }
+ ```
+
+#### `/relay/ping`
+Send a heartbeat ping to maintain agent registration.
+
+**Request**: `POST /relay/ping`
+- **Headers**: `Content-Type: application/json`, `Authorization: Bearer `
+- **Body**:
+ ```json
+ {
+ "agent_id": "unique-agent-identifier",
+ "timestamp": "2026-02-26T10:00:00Z",
+ "signature": "ed25519-signature"
+ }
+ ```
+
+**Response**: `200 OK`
+- **Body**:
+ ```json
+ {
+ "status": "active",
+ "last_ping": "2026-02-26T10:00:00Z",
+ "next_expected_ping": "2026-02-26T10:05:00Z"
+ }
+ ```
+
+## Network Info
+
+- **Node (Primary)**: [https://50.28.86.131](https://50.28.86.131)
+- **Health Check**: [https://50.28.86.131/health](https://50.28.86.131/health)
+- **Block Explorer**: [https://50.28.86.131/explorer](https://50.28.86.131/explorer)
+
+## Contributing
+
+- Fork this repo
+- Work on a bounty
+- Submit a PR referencing the issue number
+- Maintainer reviews and pays out in RTC
+
+## License
+
+Apache 2.0
diff --git a/docs/API.md b/docs/API.md
index 268f6b6e..76412e88 100644
--- a/docs/API.md
+++ b/docs/API.md
@@ -1,243 +1,72 @@
-# RustChain API Reference
+# RustChain Beacon Atlas API Documentation
-Base URL: `https://50.28.86.131`
+## Overview
+The Beacon Atlas API provides the core communication layer for RustChain agents, enabling registration, heartbeat, and attestation functionality.
-All endpoints use HTTPS. Self-signed certificates require `-k` flag with curl.
+## Endpoints
----
+### POST /relay/register
+Register a new beacon agent with the RustChain network.
-## Health & Status
-
-### `GET /health`
-
-Check node status and version.
-
-**Request:**
-```bash
-curl -sk https://50.28.86.131/health | jq .
-```
-
-**Response:**
-```json
-{
- "backup_age_hours": 6.75,
- "db_rw": true,
- "ok": true,
- "tip_age_slots": 0,
- "uptime_s": 18728,
- "version": "2.2.1-rip200"
-}
-```
-
-| Field | Type | Description |
-|-------|------|-------------|
-| `ok` | boolean | Node healthy |
-| `version` | string | Protocol version |
-| `uptime_s` | integer | Seconds since node start |
-| `db_rw` | boolean | Database writable |
-| `backup_age_hours` | float | Hours since last backup |
-| `tip_age_slots` | integer | Slots behind tip (0 = synced) |
-
----
-
-## Epoch Information
-
-### `GET /epoch`
-
-Get current epoch details.
-
-**Request:**
-```bash
-curl -sk https://50.28.86.131/epoch | jq .
-```
-
-**Response:**
-```json
-{
- "blocks_per_epoch": 144,
- "enrolled_miners": 2,
- "epoch": 62,
- "epoch_pot": 1.5,
- "slot": 9010
-}
-```
-
-| Field | Type | Description |
-|-------|------|-------------|
-| `epoch` | integer | Current epoch number |
-| `slot` | integer | Current slot within epoch |
-| `blocks_per_epoch` | integer | Slots per epoch (144 = ~24h) |
-| `epoch_pot` | float | RTC to distribute this epoch |
-| `enrolled_miners` | integer | Miners eligible for rewards |
-
----
-
-## Miners
-
-### `GET /api/miners`
-
-List all active/enrolled miners.
-
-**Request:**
-```bash
-curl -sk https://50.28.86.131/api/miners | jq .
-```
+#### Request
+- **Method**: POST
+- **Path**: `/relay/register`
+- **Headers**:
+ - `Content-Type: application/json`
+- **Body Schema**:
+ ```json
+ {
+ "agent_id": "string (required)",
+ "public_key": "string (required, ed25519 public key)",
+ "hardware_fingerprint": "string (required, hardware signature)"
+ }
+ ```
-**Response:**
-```json
-[
+#### Response
+- **Status**: 201 Created
+- **Body**:
+ ```json
{
- "antiquity_multiplier": 2.5,
- "device_arch": "G4",
- "device_family": "PowerPC",
- "entropy_score": 0.0,
- "hardware_type": "PowerPC G4 (Vintage)",
- "last_attest": 1770112912,
- "miner": "eafc6f14eab6d5c5362fe651e5e6c23581892a37RTC"
- },
+ "status": "registered",
+ "agent_id": "string",
+ "registration_time": "ISO8601 timestamp"
+ }
+ ```
+
+#### Error Responses
+- **400 Bad Request**: Invalid request format
+- **409 Conflict**: Agent ID already registered
+
+### POST /relay/ping
+Send a heartbeat ping to maintain agent registration and prove liveness.
+
+#### Request
+- **Method**: POST
+- **Path**: `/relay/ping`
+- **Headers**:
+ - `Content-Type: application/json`
+ - `Authorization: Bearer `
+- **Body Schema**:
+ ```json
{
- "antiquity_multiplier": 2.0,
- "device_arch": "G5",
- "device_family": "PowerPC",
- "entropy_score": 0.0,
- "hardware_type": "PowerPC G5 (Vintage)",
- "last_attest": 1770112865,
- "miner": "g5-selena-179"
+ "agent_id": "string (required)",
+ "timestamp": "ISO8601 timestamp (required)",
+ "signature": "string (required, ed25519 signature of timestamp)"
}
-]
-```
-
-| Field | Type | Description |
-|-------|------|-------------|
-| `miner` | string | Unique miner ID (wallet address) |
-| `device_family` | string | CPU family (PowerPC, x86_64, etc.) |
-| `device_arch` | string | Specific architecture (G4, G5, M2) |
-| `hardware_type` | string | Human-readable hardware description |
-| `antiquity_multiplier` | float | Reward multiplier (1.0-2.5x) |
-| `entropy_score` | float | Hardware entropy quality |
-| `last_attest` | integer | Unix timestamp of last attestation |
-
----
-
-## Wallet
-
-### `GET /wallet/balance`
+ ```
-Check RTC balance for a miner.
-
-**Request:**
-```bash
-curl -sk "https://50.28.86.131/wallet/balance?miner_id=eafc6f14eab6d5c5362fe651e5e6c23581892a37RTC" | jq .
-```
-
-**Response:**
-```json
-{
- "amount_i64": 118357193,
- "amount_rtc": 118.357193,
- "miner_id": "eafc6f14eab6d5c5362fe651e5e6c23581892a37RTC"
-}
-```
-
-| Field | Type | Description |
-|-------|------|-------------|
-| `miner_id` | string | Wallet/miner identifier |
-| `amount_rtc` | float | Balance in RTC (human readable) |
-| `amount_i64` | integer | Balance in micro-RTC (6 decimals) |
-
-### `POST /wallet/transfer/signed`
-
-Transfer RTC to another wallet. Requires Ed25519 signature.
-
-**Request:**
-```bash
-curl -sk -X POST https://50.28.86.131/wallet/transfer/signed \
- -H "Content-Type: application/json" \
- -d '{
- "from": "sender_miner_id",
- "to": "recipient_miner_id",
- "amount_i64": 1000000,
- "nonce": 12345,
- "signature": "base64_ed25519_signature"
- }'
-```
-
-**Response (Success):**
-```json
-{
- "success": true,
- "tx_hash": "abc123...",
- "new_balance": 117357193
-}
-```
-
----
-
-## Attestation
-
-### `POST /attest/submit`
-
-Submit hardware fingerprint for epoch enrollment.
-
-**Request:**
-```bash
-curl -sk -X POST https://50.28.86.131/attest/submit \
- -H "Content-Type: application/json" \
- -d '{
- "miner_id": "your_miner_id",
- "fingerprint": {
- "clock_skew": {...},
- "cache_timing": {...},
- "simd_identity": {...},
- "thermal_entropy": {...},
- "instruction_jitter": {...},
- "behavioral_heuristics": {...}
- },
- "signature": "base64_ed25519_signature"
- }'
-```
-
-**Response (Success):**
-```json
-{
- "success": true,
- "enrolled": true,
- "epoch": 62,
- "multiplier": 2.5,
- "next_settlement_slot": 9216
-}
-```
-
-**Response (Rejected):**
-```json
-{
- "success": false,
- "error": "VM_DETECTED",
- "check_failed": "behavioral_heuristics",
- "detail": "Hypervisor signature detected in CPUID"
-}
-```
-
----
-
-## Error Codes
-
-| Code | Meaning |
-|------|---------|
-| `VM_DETECTED` | Attestation failed - virtual machine detected |
-| `INVALID_SIGNATURE` | Ed25519 signature verification failed |
-| `INSUFFICIENT_BALANCE` | Not enough RTC for transfer |
-| `MINER_NOT_FOUND` | Unknown miner ID |
-| `RATE_LIMITED` | Too many requests |
-
----
-
-## Rate Limits
-
-- Public endpoints: 100 requests/minute
-- Attestation: 1 per 10 minutes per miner
-- Transfers: 10 per minute per wallet
-
----
+#### Response
+- **Status**: 200 OK
+- **Body**:
+ ```json
+ {
+ "status": "active",
+ "last_ping": "ISO8601 timestamp",
+ "next_expected_ping": "ISO8601 timestamp"
+ }
+ ```
-*Documentation generated for RustChain v2.2.1-rip200*
+#### Error Responses
+- **400 Bad Request**: Invalid request format or signature
+- **401 Unauthorized**: Invalid or missing authentication token
+- **404 Not Found**: Agent not registered