Skip to content

VitalPointAI/Bastion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,786 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BASTION

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.

Vision

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.

Key Features

  • 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

Quick Start

# 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:5432

See DEVELOPMENT.md for detailed setup instructions.

Architecture

┌──────────────┐     ┌──────────────┐     ┌──────────────┐
│   Frontend   │────▶│   Backend    │────▶│  PostgreSQL  │
│   (React)    │     │  (Express)   │     │ TimescaleDB  │
└──────────────┘     └──────────────┘     └──────────────┘
       │                    │
       │                    ▼
       │             ┌──────────────┐     ┌──────────────┐
       │             │    IPFS      │     │    NEAR      │
       │             │  (Pinata)    │     │ (Blockchain) │
       │             └──────────────┘     └──────────────┘
       │                                        │
       ▼                                        ▼
┌──────────────┐                         ┌──────────────┐
│   Privy      │                         │  Phala TEE   │
│   (Auth)     │                         │(Confidential)│
└──────────────┘                         └──────────────┘

Project Structure

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

Documentation

Technology Stack

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

Development

# 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 -d

License

Proprietary - All rights reserved.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors