Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

83 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

GXQS Distributed Compute Operating Platform

Unified control plane for wallet, mining, validation, and deployment.

GXQS is not a wallet app. It is an enterprise blockchain operating platform that combines:

  • πŸ” Universal Identity Layer – one cryptographic root controlling wallet signing, mining authentication, validator authorization, and enterprise deployment permissions
  • ⚑ Runtime Supervisor – Kubernetes-style daemon orchestration (walletd, minerd, validatord, telemetryd, deployerd)
  • πŸ¦€ Rust Crypto Core – AES-256-GCM vault, memory-safe (zeroize-on-drop), WASM-capable
  • 🐹 Go Protocol Bridge – walletd JSON-RPC server, GXQS address derivation, transaction builder
  • 🌐 Web Dashboard – Next.js + Tailwind + Zustand enterprise monitoring UI (#00ffe1 glow system)
  • 🧠 Smart Wallet Flow (walletd-mediated placeholders):
    • one-click onboarding UX and registration/import/export request surfaces
    • network/RPC profile toggles and auth onboarding placeholders
    • secret material remains inside walletd
  • πŸ“± Mobile App – React Native + Expo cross-platform client (apps/mobile)
  • πŸ“‹ Policy Engine – YAML-driven enterprise policy enforcement (compute limits, validator rules, fleet policies)
  • 🐳 Production Infrastructure – Docker, Kubernetes (Kustomize), Prometheus, Grafana

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                              GXQS/Wallet                                   β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  β”‚   walletd   β”‚  β”‚   minerd    β”‚  β”‚  validatord β”‚  β”‚     telemetryd      β”‚ β”‚
β”‚  β”‚ (Go bridge) β”‚  β”‚ (mining)    β”‚  β”‚ (validator) β”‚  β”‚     (metrics)       β”‚ β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”‚         β”‚                                                                   β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  β”‚ Rust Vault  β”‚  β”‚   Policy    β”‚  β”‚  Runtime    β”‚  β”‚      Deployerd      β”‚ β”‚
β”‚  β”‚(AES-256-GCM)β”‚  β”‚   Engine    β”‚  β”‚ Supervisor  β”‚  β”‚    (deployment)     β”‚ β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”‚         β”‚                                                                   β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”                                                           β”‚
β”‚  β”‚   Core      β”‚  ← Protocol authority (github.com/GXQS/core)              β”‚
β”‚  β”‚  (gRPC)     β”‚                                                           β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                                                           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Non-Negotiable Security Rules

Rule Detail
❌ No key exposure Private keys never leave walletd; renderer/UI processes receive only signed outputs
❌ No vault access Mining runtimes operate without any vault access
❌ No signing duplication All signing originates from walletd; no frontend reimplementation
βœ… Authenticated IPC All RPC channels require authentication + scoped permissions
βœ… Untrusted surfaces Web, Desktop, Mobile, and Browser runtimes are treated as untrusted

Repository Structure

wallet/
β”œβ”€β”€ apps/
β”‚   β”œβ”€β”€ web/                   # Next.js 16 enterprise dashboard
β”‚   └── mobile/                # React Native + Expo mobile app
β”œβ”€β”€ packages/
β”‚   β”œβ”€β”€ sdk/                   # TypeScript SDK (@gxqs/sdk)
β”‚   └── ui/                    # Shared UI components (@gxqs/ui)
β”œβ”€β”€ runtime/
β”‚   β”œβ”€β”€ gxqs-runtime/          # Runtime supervisor (watchdog)
β”‚   β”œβ”€β”€ protocol/
β”‚   β”‚   └── go-rpc-bridge/     # Go JSON-RPC walletd (Core integration)
β”‚   β”œβ”€β”€ policy-engine/         # YAML enterprise policy engine
β”‚   └── crypto/
β”‚       └── gxqs-wallet-core-rs/  # Rust: AES-256-GCM vault + WASM
β”œβ”€β”€ infra/
β”‚   β”œβ”€β”€ docker/                # Dockerfiles + Docker Compose
β”‚   β”œβ”€β”€ kubernetes/            # Kustomize base manifests
β”‚   └── observability/         # Prometheus + Grafana configs
β”œβ”€β”€ api/                       # OpenAPI spec (walletd)
β”œβ”€β”€ scripts/                   # bootstrap.sh / bootstrap.ps1
└── .github/workflows/         # CI: Go, Rust, TypeScript, WASM

Quick Start

Option A β€” One-command bootstrap (recommended)

Linux / macOS:

# Verifies prerequisites, syncs/fetches dependencies, and installs audit tools
bash scripts/bootstrap.sh
make build

Windows (PowerShell):

# Run from repo root
.\scripts\bootstrap.ps1
make build

Option B β€” Manual setup

Prerequisites: Go 1.24+, Rust 1.94.1+, Node.js 24+, pnpm 11+

# 1 β€” TypeScript packages
pnpm install

# 2 β€” Start web dashboard (dev)
pnpm --filter @gxqs/web dev

# 3 β€” Validate frontend quality gates
pnpm format:check
pnpm lint
pnpm typecheck
pnpm test

# 4 β€” Run walletd (Go)
cd runtime/protocol/go-rpc-bridge && go run ./cmd/walletd

# 5 β€” Verify
curl http://localhost:8545/healthz
curl http://localhost:8545/rpc/v1/version

Developer Commit Workflow

Pre-commit checks are enforced with Lefthook in strict order:

  1. pnpm generated:guard – removes non-material generated-file drift from staging
  2. pnpm format:staged – runs prettier --write on staged files only
  3. pnpm format:check:staged – strict prettier --check on staged files
  4. pnpm lint and pnpm typecheck – static quality gates

For generated file classification and commit behavior, see:

  • docs/GENERATED_FILE_POLICY.md
  • docs/CONTRIBUTOR_WORKFLOW.md

Useful Commands

# Format only staged files (same behavior as pre-commit step)
pnpm format:staged

# Strictly verify formatting on staged files
pnpm format:check:staged

# Format full repository
pnpm format

# Verify formatting without writing changes
pnpm format:check

Dashboard Mockup

GXQS Runtime Platform Dashboard

Enterprise dashboard featuring:

  • Real-time telemetry – Live TPS, block height, finality, validator count
  • Neon glow system – #00ffe1 primary glow with state-driven animations
  • Glassmorphism UI – Frosted glass effects with depth levels
  • Responsive design – Mobile-first adaptive layout with bottom navigation
  • Live charts – Collapsible TPS chart with auto-refresh
  • Block stream – Real-time block updates with SSE streaming
  • Mempool monitor – Priority-based transaction visualization

Note: This is a representative SVG mockup. The actual dashboard is fully interactive with live Core gRPC data.

Adaptive UI Documentation

  • docs/architecture/MOBILE_FIRST_ADAPTIVE_UI.md
  • docs/RESPONSIVE_STORYBOOK_DOCS.md

Full Stack (Docker Compose)

cd infra/docker
docker compose up -d
# Web dashboard β†’ http://localhost:3000
# walletd RPC   β†’ http://localhost:8545
# Grafana       β†’ http://localhost:3001  (admin / changeme)
# Prometheus    β†’ http://localhost:9090

Makefile Targets

Command Description
make help Show all targets
make bootstrap Install all toolchain prerequisites and project dependencies
make build Build all (Go, Rust, TypeScript)
make test Run all tests
make lint Lint all workspaces
make typecheck TypeScript type-check
make audit Security audit (pnpm + cargo)
make fmt Format all code
make docker Build Docker images
make k8s Apply Kubernetes manifests
make clean Remove build artifacts

CI/CD

All pull requests must pass required CI gates. govulncheck currently runs as report-only (non-blocking):

Gate Tool
TypeScript check tsc --noEmit
Go vet go vet
Go test (race) go test -race
Go build go build
Go vuln check (report-only) govulncheck
Rust clippy cargo clippy
Rust fmt cargo fmt
npm audit pnpm audit
cargo audit cargo audit
WASM build cargo build --target wasm32-unknown-unknown
Prettier format prettier --check

CI runs on Ubuntu, Windows, and macOS for all language stacks.

Security Model

Process Vault Access Network Access UI Access
walletd βœ… R/W Internal only ❌
minerd ❌ Pool RPC only ❌
validatord ❌ Consensus RPC ❌
telemetryd ❌ Telemetry sink ❌
Web UI ❌ walletd IPC βœ…
Browser ❌ Pool RPC only βœ…

Modern UI Features

Feature Description
Neon Glow System State-driven glow effects (hover, active, critical) with #00ffe1 primary
Glassmorphism Three depth levels (L1/L2/L3) with backdrop blur and translucent borders
Responsive Navigation Sidebar on desktop β†’ Bottom nav with expandable tray on mobile
Live Streaming Server-Sent Events (SSE) for blocks and events – no browser gRPC
Collapsible Charts Toggle charts on mobile, memoized for performance
Dark Theme Cyberpunk-inspired dark interface with high contrast

Core Integration

Wallet v0.1.0 consumes Core as the protocol authority:

  • βœ… Canonical Protobuf schemas from github.com/GXQS/core (proto/ in Core repo)
  • βœ… Hybrid post-quantum signing (Ed25519 + Dilithium2)
  • βœ… gRPC client wrapper for WalletService
  • βœ… Deterministic event sourcing support

License

Apache-2.0 Β© GXQS Platform Team

About

Unified runtime platform and smart wallet for the GXQS Quantum Blockchain. Features enterprise-grade distributed compute, post-quantum secure vault, multi-runtime support (Web, Desktop Tauri, Mobile, Browser), GPU/CPU mining orchestration, and policy-driven fleet management.

Resources

Security policy

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages