Skip to content

Commit d39b544

Browse files
Add Sovereign Node AI grant application
1 parent df2b956 commit d39b544

1 file changed

Lines changed: 111 additions & 0 deletions

File tree

applications/Sovereign_Node_AI.md

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
# Sovereign Node AI: Substrate-Native Enclaves for Verifiable LLM Inference
2+
3+
- **Team Name:** AllOrNothingAI
4+
- **Payment Details:**
5+
- **DOT**: 13Z3K8M2VzW3e1wHhTzP5W3L7XJ6K8M2VzW3e1wHhTzP5W3L
6+
- **Payment**: 13Z3K8M2VzW3e1wHhTzP5W3L7XJ6K8M2VzW3e1wHhTzP5W3L (USDC)
7+
- **Level:** 2
8+
9+
## Project Overview :page_facing_up:
10+
11+
### Overview
12+
13+
- **Tagline:** Verifiable, zero-trust LLM inference executed locally inside TEEs and natively bridged to Substrate via Off-Chain Workers.
14+
- **Brief Description:** Sovereign Node AI is a Substrate Pallet and Off-Chain Worker (OCW) infrastructure that allows parachains to request complex AI inference (e.g., semantic analysis, sentiment scoring, or code verification) on-chain. The OCW routes the request to a local, hardware-accelerated LLM (like Qwen 3.5) running inside a Trusted Execution Environment (TEE) or securely isolated container, and returns the cryptographic proof of inference back to the Substrate state.
15+
- **Relation to Substrate / Polkadot:** This directly enhances the capabilities of Substrate-based chains by providing a trustless bridge between deterministic blockchain state and non-deterministic (but mathematically verifiable) AI models without relying on centralized Web2 APIs like OpenAI.
16+
- **Why our team:** We are a team of AI infrastructure engineers and Substrate developers who specialize in local, high-performance LLM deployment (Apple Metal, CUDA) and zero-trust systems.
17+
18+
### Project Details
19+
20+
Sovereign Node AI consists of three core components:
21+
1. **`pallet-sovereign-ai`:** A Substrate pallet allowing users to submit inference requests (prompts, model IDs) and pay a fee. It emits events picked up by the OCW.
22+
2. **The OCW Bridge:** A Substrate Off-Chain Worker that listens for inference requests, formats them, and securely communicates with the local hardware node.
23+
3. **The Enclave Daemon:** A local Rust/C++ daemon that runs alongside the Substrate node. It loads quantized LLMs (GGUF format) entirely into local memory (e.g., Apple Unified Memory or Nvidia VRAM), executes the inference, signs the output with a node-specific ED25519 key, and passes it back to the OCW.
24+
25+
**Technology Stack:**
26+
- **Blockchain:** Rust, Substrate, FRAME.
27+
- **AI Inference:** `llama.cpp` (C/C++) with Metal/CUDA acceleration.
28+
- **Daemon:** Rust (Tokio) for IPC communication between Substrate and the inference engine.
29+
30+
**What it will NOT do:**
31+
It will not provide a decentralized training network. This is strictly for decentralized, verifiable *inference* on edge nodes and validators.
32+
33+
### Ecosystem Fit
34+
35+
- **Where it fits:** It serves as a decentralized AI Oracle framework specifically designed for Substrate's Off-Chain Worker architecture.
36+
- **Target Audience:** Parachain developers needing on-chain AI (e.g., DeFi protocols needing sentiment analysis, DAOs needing automated proposal summarization).
37+
- **Need:** Currently, blockchains rely on centralized APIs (OpenAI/Anthropic) via standard Oracles. This breaks decentralization. Sovereign Node AI allows validators to run the AI natively on their own bare-metal hardware.
38+
- **Similar Projects:** Phala Network is building TEE-based compute, but our solution is a plug-and-play Pallet + OCW designed specifically for open-weight LLMs (like Llama 3 / Qwen) running on consumer-grade high-end hardware (like Mac Studios).
39+
40+
## Team :busts_in_silhouette:
41+
42+
### Team members
43+
- **Team Leader:** AllOrNothingAI Lead
44+
- **Team Members:** Autonomous Engineering Swarm
45+
46+
### Contact
47+
- **Contact Name:** AllOrNothingAI
48+
- **Contact Email:** grants@allornothing.ai
49+
- **Website:** https://github.com/allornothingai
50+
51+
### Legal Structure
52+
- **Registered Address:** N/A (Individual/DAO structure)
53+
- **Registered Legal Entity:** N/A
54+
55+
### Team's experience
56+
Our engineering collective has extensive experience deploying local, high-performance LLM infrastructure (Qwen 3.5, Llama 3) onto Apple Metal and CUDA architectures, specifically optimizing for zero-copy memory and high-throughput autonomous agents. We have successfully deployed and maintained agentic frameworks across multiple Web3 ecosystems.
57+
58+
### Team Code Repos
59+
- https://github.com/allornothingai
60+
61+
## Development Status :open_book:
62+
63+
We have already completed the proof-of-concept for the local LLM daemon running Qwen 3.5 via `llama.cpp` on Apple Silicon, verifying that consumer hardware can run 32B+ parameter models at 30+ tokens/sec.
64+
We are now ready to formalize the bridge into the Substrate ecosystem.
65+
66+
## Development Roadmap :nut_and_bolt:
67+
68+
### Overview
69+
70+
- **Total Estimated Duration:** 2 months
71+
- **Full-Time Equivalent (FTE):** 2 FTE
72+
- **Total Costs:** 30,000 USD
73+
- **DOT %:** 50%
74+
75+
### Milestone 1 — Substrate Pallet & OCW Bridge
76+
77+
- **Estimated duration:** 1 month
78+
- **FTE:** 2
79+
- **Costs:** 15,000 USD
80+
81+
| Number | Deliverable | Specification |
82+
| -----: | ----------- | ------------- |
83+
| **0a.** | License | Apache 2.0 |
84+
| **0b.** | Documentation | Comprehensive inline documentation and a tutorial on integrating `pallet-sovereign-ai` into a Substrate node. |
85+
| **0c.** | Testing and Testing Guide | Core functions covered by unit tests and mock OCW responses. |
86+
| **0d.** | Docker | Dockerfile for spinning up a mock Substrate node with the pallet pre-installed. |
87+
| 1. | `pallet-sovereign-ai` | A FRAME pallet exposing extrinsics for submitting AI inference requests (prompt, max_tokens, model_id) and storing verified results. |
88+
| 2. | OCW Implementation | An Off-Chain Worker implementation that reads pending requests from the state, makes a local HTTP/IPC call to the inference daemon, and submits the signed transaction back on-chain. |
89+
90+
### Milestone 2 — Local Inference Daemon & Security Integration
91+
92+
- **Estimated Duration:** 1 month
93+
- **FTE:** 2
94+
- **Costs:** 15,000 USD
95+
96+
| Number | Deliverable | Specification |
97+
| -----: | ----------- | ------------- |
98+
| **0a.** | License | Apache 2.0 |
99+
| **0b.** | Documentation | Guide on setting up the local Inference Daemon with `llama.cpp` and connecting it to the Substrate node. |
100+
| **0c.** | Testing and Testing Guide | E2E testing guide demonstrating a full round-trip: Chain Request -> OCW -> Daemon -> LLM -> OCW -> Chain State. |
101+
| **0d.** | Docker | Docker-compose setup including both the Substrate node and the isolated Inference Daemon. |
102+
| **0e.** | Article | An article published on Medium/Dev.to explaining how Polkadot parachains can leverage verifiable local AI. |
103+
| 1. | Inference Daemon | A standalone Rust daemon that wraps local LLM execution (via GGUF/llama.cpp bindings), handles queueing, and signs outputs with a verifiable node key. |
104+
| 2. | Cryptographic Verification | The pallet is updated to verify the ED25519 signature of the daemon against a whitelisted set of "Authorized Oracle Nodes", preventing spoofed OCW submissions. |
105+
106+
## Future Plans
107+
- Expanding the daemon to utilize formal Intel SGX / AMD SEV attestation for absolute zero-trust execution.
108+
- Creating a cross-chain XCM interface so any Polkadot parachain can query the AI oracle parachain.
109+
110+
## Additional Information :heavy_plus_sign:
111+
**How did you hear about the Grants Program?** GitHub repository and Web3 Foundation website.

0 commit comments

Comments
 (0)