System Architecture
Full stack diagram — what exists, what's needed, and how everything connects.
Full Stack Layers
User Browser
- · Base44 React App (this dashboard)
- · Tailwind CSS + shadcn/ui
- · Three.js visualizations
- · Real-time WebSocket feeds
✓ Built & deployed on Base44
Base44 Backend
- · API proxy → HCP node REST endpoints
- · Auth & session management
- · Webhook delivery layer
- · Analytics event ingestion
✓ Available — needs backend functions (Builder+ plan)
HCP Node REST API
- · POST /v1/settle — main settlement endpoint
- · GET /health — node liveness probe
- · GET /dag/depth — H-DAG chain height
- · GET /consensus — BFT round status
⚠ Needs implementation: axum REST wrapper around hcp-core crate
HCP Core Engine
- · MCF computation — Mandelbrot coordinate mapping
- · HTIV generation — transaction fingerprinting
- · Deterministic FP — cross-arch IEEE 754 validation
- · Collision detection — temporal uniqueness proofs
⚠ Needs: deterministic FP tests, ARM/x86 validation suite
JSVL BFT Consensus
- · Prepare → Promise → Accept → Commit (PBFT-variant)
- · BLS12-381 threshold signatures (blst crate)
- · Leader election & view change protocol
- · Safety: n ≥ 3f + 1 validator nodes
🔴 Needs implementation: core protocol work
H-DAG Storage
- · Holographic DAG — vertex per settlement
- · Merkle root per BFT round
- · Audit trail — immutable append-only log
- · Snapshot & compaction for archival nodes
🔴 Needs implementation: DAG schema + RocksDB integration
P2P Network Layer
- · Peer discovery — mDNS + DHT bootstrap
- · Gossip protocol — settlement propagation
- · Noise protocol — encrypted transport
- · Testnet: 4 VPS nodes minimum
🔴 Needs implementation: critical for real network
Rust Crate Structure
hcp-node/
├── crates/hcp-core/ ← MCF / HTIV math
├── crates/hcp-consensus/ ← JSVL BFT protocol
├── crates/hcp-dag/ ← H-DAG + RocksDB
├── crates/hcp-net/ ← libp2p networking
├── crates/hcp-api/ ← axum REST server
└── bin/hcp-node/ ← validator binary
hcp-core
MCF / HTIV math library
Partially implemented
hcp-consensus
JSVL BFT protocol
Needs implementation
hcp-dag
Holographic DAG storage
Needs implementation
hcp-net
libp2p networking layer
Needs implementation
hcp-api
axum REST API server
Needs implementation
hcp-cli
Operator CLI tool
Needs implementation
hcp-node
Full validator binary (all crates)
Needs implementation
Key Rust Dependencies
All async I/O
/v1/settle endpoint
Peer discovery & gossip
Threshold signatures
H-DAG persistence
JSON payloads & storage
Engineering Roadmap
- ·Deterministic FP tests
- ·Cross-arch validation (ARM, x86)
- ·hcp-core crate structure
- ·axum REST wrapper
- ·VPS deployment (Hetzner/Vultr)
- ·H-DAG with RocksDB
- ·Base44 proxy → live node
- ·Health monitoring
- ·JSVL BFT across 4 machines
- ·libp2p peer networking
- ·BLS signature aggregation
- ·Public demo endpoint
- ·arXiv preprint
- ·Independent security audit
- ·31+ node mainnet
- ·Regulatory engagement
✓ Done: Frontend UI dashboard (this app), theoretical whitepaper, MCF math concepts.
⚠ Partial: Rust MCF/HTIV implementation — needs deterministic FP validation and test suite.
✗ Not yet: BFT consensus, H-DAG storage, P2P networking, live nodes, real API endpoint.
Next concrete action: Deploy one Rust node (even without BFT) to a $6/mo Hetzner VPS, expose /v1/settle, and connect this dashboard to it. That is the most important single step.