Integration
Nawal connects directly to the BelizeChain runtime through Substrate RPC, participating in Proof of Useful Work consensus and earning DALLA rewards for AI training. A hybrid engine with progressive sovereignty ensures Belize retains full control as the sovereign model matures.
Integration Points
Substrate RPC
SubstrateClient connects via WebSocket to ws://127.0.0.1:9944 for storage queries, extrinsic submission, and event monitoring. Full BelizeChain runtime integration.
PoUW Consensus
StakingConnector handles enroll_participant, submit_training_proof, and claim_rewards. Fitness scoring combines quality (40%), timeliness (30%), and honesty (30%) for DALLA rewards.
Hybrid Nawal Engine
HybridNawalEngine orchestrates Nawal (sovereign student) and DeepSeek (external teacher). IntelligentRouter uses a 0.75 confidence threshold to route queries between models.
Progressive Sovereignty
Starts at 50/50 Nawal/DeepSeek split and evolves toward 95/5 as Nawal improves. KnowledgeDistillationTrainer runs nightly batch jobs with soft targets from DeepSeek.
Pakit Storage
Model weights stored on Pakit with CID references and Merkle proofs. Quantum compression via Kinich reduces 500MB models to ~150MB for efficient distribution.
Identity & Community
BelizeIDVerifier performs KYC verification via the Identity pallet. CommunityConnector tracks SRS contributions and federated learning participation.