Blockchain Autonomous Strategy & Tactical Intelligence Operational Network
A secure platform combining NEAR blockchain, Phala TEE (Trusted Execution Environment), and decentralized storage for privacy-preserving operations.
BASTION automates the complete military planning cycle—from strategic objectives through operational planning to autonomous tactical execution—while maintaining verifiable human control over critical decisions. The system ingests national security strategies, generates operational plans using joint planning doctrine (JP 5-0), and executes missions through autonomous vehicles, all with blockchain-verified audit trails and DAO-based decision authority. What makes this different: every action is cryptographically verifiable, classified data stays protected in Trusted Execution Environments, and coalition partners can collaborate while respecting information sharing rules.
- Zero Blockchain UX: Web2-style authentication, no crypto knowledge required
- Privacy Routing: Automatic classification-based data routing (Public → on-chain, Secret → TEE)
- Decentralized Storage: Encrypted IPFS storage with on-chain verification
- Chain Signatures: Multi-chain asset control via NEAR MPC
- Offline-First: Edge device sync for disconnected operations
# Clone repository
git clone <repository-url>
cd ssr
# Configure environment
cp .env.example frontend/.env.local
cp backend/.env.example backend/.env
# Edit files with your API keys (Privy, Pinata)
# Start development environment
docker compose up -d
# Services available at:
# - Frontend: http://localhost:5173
# - Backend: http://localhost:3001
# - Database: localhost:5432See DEVELOPMENT.md for detailed setup instructions.
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
│ Frontend │────▶│ Backend │────▶│ PostgreSQL │
│ (React) │ │ (Express) │ │ TimescaleDB │
└──────────────┘ └──────────────┘ └──────────────┘
│ │
│ ▼
│ ┌──────────────┐ ┌──────────────┐
│ │ IPFS │ │ NEAR │
│ │ (Pinata) │ │ (Blockchain) │
│ └──────────────┘ └──────────────┘
│ │
▼ ▼
┌──────────────┐ ┌──────────────┐
│ Privy │ │ Phala TEE │
│ (Auth) │ │(Confidential)│
└──────────────┘ └──────────────┘
ssr/
├── frontend/ # React + Vite frontend
├── backend/ # Node.js + Express API
├── near-contracts/ # Rust smart contracts
├── edge-device/ # Edge device sync client
├── docker-compose.yml # Development orchestration
├── DEVELOPMENT.md # Development guide
└── .planning/ # Project planning docs
- Development Guide - Full setup and workflow
- Frontend README - React app details
- Backend README - API documentation
- NEAR Contracts README - Smart contract docs
| Layer | Technology | Purpose |
|---|---|---|
| Frontend | React 19, Vite, TypeScript | User interface |
| Auth | Privy.io | Web2 login, embedded wallets |
| Backend | Node.js, Express | API, encryption, sync |
| Database | PostgreSQL, TimescaleDB | Fast queries, time-series |
| Blockchain | NEAR Protocol | Verification, smart contracts |
| TEE | Phala Network | Confidential computing |
| Storage | IPFS (Pinata) | Decentralized documents |
# Start all services
docker compose up -d
# View logs
docker compose logs -f
# Stop services
docker compose down
# Rebuild after changes
docker compose up --build -dProprietary - All rights reserved.