NexOps Protocol is a high-performance, AI-driven development and operations layer designed to streamline the lifecycle of Bitcoin Cash (BCH) smart contracts. By bridging the gap between natural language intent and low-level CashScript execution, NexOps empowers developers and organizations to build secure, audited, and scalable DeFi protocols with unprecedented speed.
- 🧠 AI-Assisted Contract Generation: Transform complex business logic into validated CashScript code using state-of-the-art LLMs (Gemini, Groq).
- 🛡️ Automated Audit Engine: Real-time security scanning and vulnerability detection tailored for the BCH VM (Bitauth).
- ⚡ Unified Deployment Pipeline: Seamlessly bridge from development to mainnet with integrated WalletConnect support and automated fee estimation.
- 📊 Operational Intelligence: Deep visibility into contract states, UTXO management, and protocol health via an intuitive workbench.
- 🛠️ Developer-Centric IDE: Monaco-powered editor with full syntax highlighting, real-time compilation, and an integrated debugging console.
NexOps is built on a modular "Nexus" architecture that prioritizes security and developer experience:
- Nexus Frontend: A polished React + Vite application utilizing Tailwind CSS for a premium, high-density dashboard experience.
- Inference Layer: Pluggable AI backend supporting advanced reasoning for contract generation and audit report synthesis.
- Blockchain Interface: Direct integration with
libauthandelectrum-cashfor robust network interactions and hardware wallet compatibility.
| Category | Technologies |
|---|---|
| Framework | React 18, Vite, TypeScript |
| Styling | Tailwind CSS (Nexus Design System) |
| Smart Contracts | CashScript, Bitcoin Cash VM |
| AI Layer | Google Gemini (SDK), Groq SDK |
| Communication | WalletConnect, Electrum Network |
| IDE Core | Monaco Editor, XTerm.js |
- Node.js: v18.x or higher
- Package Manager: npm or yarn
- Wallet: A BCH-compatible wallet (supporting WalletConnect) for deployment features.
-
Clone the repository:
git clone https://github.com/nexops-protocol/nexops-core.git cd nexops-core -
Install dependencies:
npm install
-
Configure Environment Variables: Create a
.env.localfile based on the provided configuration:VITE_GEMINI_API_KEY=your_key_here VITE_GROQ_API_KEY=your_key_here
-
Launch the Development Server:
npm run dev
NexOps MCP (Model Context Protocol) is the authoritative intelligence core of the NexOps ecosystem. It transitions AI reasoning out of the peripheral IDE and into a centralized, specialized, and safety-hardened server dedicated to the generation of secure Bitcoin Cash (BCH) smart contracts.
To provide a deterministic, safety-first code generation pipeline that eliminates common vulnerabilities in Cashtokens and BCH covenants by enforcing a "Negative Type System" through semantic anti-pattern detection.
NexOps MCP is built on a tiered architecture that separates structural intent from logic implementation, wrapped in a strict security baseline.
Responsible for structural skeleton generation. It defines the "shape" of a contract (parameters, functions, storage) without implementing logic, ensuring the high-level design is sound before a single line of script is written.
The logic implementation core. It transforms skeletons into fully functional CashScript code by drawing from an authoritative Knowledge Base of production-tested patterns and security rules.
A rigorous "Negative Type System" that semantically analyzes generated code for known exploitable patterns.
- Authoritative: If a violation is detected, the code is REJECTED.
- Semantic: Uses AST analysis (not string matching) to understand logic flow.
- Explainable: Provides detailed reports on why code is unsafe and which BCH invariants were violated.
A curated library of Bitcoin Cash domain expertise:
- Security Rules: 18+ critical rules for covenant safety.
- Secure Patterns: Production-ready snippets for validation, auth, and state management.
- Templates: Reference implementations for standard contract types (Escrows, Vaults, DAOs).
- Core: Python 3.11+
- API Framework: FastAPI
- Real-time Communication: WebSockets (JSON-RPC style)
- Validation: Pydantic v2
- Testing: Pytest (Unit & Integration)
- Security Logic: Custom CashScript AST Parser & Semantic Evaluator
NexOps MCP is designed to be the "brain" behind the NexOps IDE. While the IDE handles UI/UX and user interaction, the MCP server handles:
- Context-Aware Reasoning: Injecting BCH-specific constraints into LLM prompts.
- Security Audits: Real-time checking of user-written or AI-generated code.
- Knowledge Retrieval: Providing the IDE with authoritative patterns on-demand.
Part of the NexOps ecosystem - building the future of secure decentralized finance on Bitcoin Cash.
- Q3 2025: Multi-contract composition support (linking multiple scripts).
- Q4 2025: Integrated automated testing suite with BCH-sandbox.
- Q1 2026: "One-Click Protocol" templates for common DeFi primitives (DEX, Lending, Stablecoins).
- Q2 2026: NexOps API for external integration into CI/CD pipelines.
We welcome contributions from the community! Please read our Contributing Guidelines and Code of Conduct.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Built with ❤️ by the NexOps Foundation Team