Lightweight Hybrid AI-Powered DAO Blockchain Ecosystem
Native Coin: DevilCoin Β |Β
On-chain ticker: DVC Β |Β
DEX / exchange ticker: DVL
|
Nexuzy Lab β the innovation lab behind DevilChain. Building next-generation Web3, AI, and blockchain infrastructure. π nexuzy.in |
Devil One β infrastructure & ecosystem partner. Driving the DevilChain ecosystem forward. π devilone.in |
Lead Developer: David Β |Β @david0154 on GitHub
| Field | Value | Notes |
|---|---|---|
| Full name | DevilCoin | Always the human-readable name |
| On-chain ticker | DVC | Used in wallet, API, blockchain code, gas fees |
| Exchange ticker | DVL | Used on DEX / CEX listings, trading pairs |
| Algorithm | DVLHash-AI | CPU-optimized, anti-ASIC |
| Smallest unit | micro-DVC (Β΅DVC) | 1 DVC = 1,000,000 Β΅DVC |
| Decimals | 6 | Same as USDC model |
Short answer: Use DVC everywhere in the codebase and wallet. Use DVL only on exchanges and trading pairs.
DevilChain is a lightweight hybrid AI-powered DAO blockchain ecosystem designed for:
- β‘ High-throughput Web3 applications (5,000β20,000 TPS)
- π± Decentralized social media & encrypted messaging
- π€ AI-assisted blockchain infrastructure & security
- π» Low-cost validator nodes & accessible VPS mining
- π Seamless cross-chain compatibility (ETH, BNB, Polygon, Solana)
- π‘οΈ DevilGuard AI β real-time fraud, rug pull & spam detection
- πͺͺ DevilID β decentralized Web3 identity (DID:devil)
| Product | Purpose | Status |
|---|---|---|
| DevilChain Core | Main Layer-1 blockchain (Rust) | β Active |
| DevilCoin (DVC/DVL) | Native gas & staking coin | β Active |
| DevilX Wallet | Multi-platform Web3 wallet (Flutter) | β Active |
| DevilScan | Blockchain explorer (Next.js) | β Active |
| DevilProtocol | Smart contract system (EVM+WASM) | β Active |
| DevilChain DAO | On-chain governance | β Active |
| DevilSocial | Decentralized Web3 social media (Next.js) | β Active |
| DevilChat | E2E encrypted wallet-to-wallet messaging | β Active |
| DevilGuard AI | AI security, fraud & spam detection | β Active |
| DevilBridge | Cross-chain bridge (ETH/BSC/Polygon/SOL) | β Active |
| DevilStorage | Decentralized file storage (CID-based) | β Active |
| DevilID | Decentralized identity (DID:devil) | β Active |
| DevilAI Node | AI validator & miner system | β Active |
| Property | Value |
|---|---|
| Total Supply | 1,000,000,000 DVC |
| Decimals | 6 (1 DVC = 1,000,000 Β΅DVC) |
| Block Reward | 50 DVC (halves every 2,100,000 blocks) |
| Min Gas Fee | 0.01 DVC (floor for all tx types) |
| On-chain ticker | DVC |
| Exchange ticker | DVL |
| Allocation | % | Amount | Wallet |
|---|---|---|---|
| Mining Rewards | 10% | 100,000,000 DVC | db1xmining_pool_devilchain_000000000 |
| Ecosystem Growth | 20% | 200,000,000 DVC | db1xecosystem |
| DAO Treasury | 15% | 150,000,000 DVC | db1xdao_treasury |
| Dev Fund | 10% | 100,000,000 DVC | db1xdev_nexuzy_lab_david0154_00000000 |
| Investors | 5% | 50,000,000 DVC | db1xinvestors |
| Community | 5% | 50,000,000 DVC | db1xcommunity |
| Marketing | 5% | 50,000,000 DVC | db1xmarketing_fund_devilchain_000000 |
| Pre-minted total | 70% | 700,000,000 DVC | β |
| Mining emission (remaining) | 30% | 300,000,000 DVC | minted per block |
| Transaction Type | Fee Rate | Example (100 DVC send) |
|---|---|---|
| Standard Transfer | 0.3% | 0.30 DVC |
| DEX Swap | 1.5% | 1.50 DVC |
| NFT Marketplace Sale | 2.0% | 2.00 DVC |
| Smart Contract Deploy | 5.0% min | 5.00 DVC+ |
Minimum fee floor: 0.01 DVC regardless of amount.
| Recipient | % | Example (1.5 DVC DEX fee) | Wallet |
|---|---|---|---|
| Miner / Validator | 55% | 0.8250 DVC | Block validator |
| Development Fund | 18% | 0.2700 DVC | db1xdev_nexuzy_lab_david0154_00000000 |
| π₯ Burn | 10% | 0.1500 DVC | db1x000000000000000000000000000burn |
| Liquidity Pool | 10% | 0.1500 DVC | db1xliquidity_lock_vault_dao_00000000 |
| Marketing | 7% | 0.1050 DVC | db1xmarketing_fund_devilchain_000000 |
| Total | 100% | 1.5000 DVC | β |
Once 200,000,000 DVC has been burned (20% of supply), burning stops automatically. The 10% burn allocation is redistributed:
| Recipient | % | Notes |
|---|---|---|
| Miner / Validator | 55% | Unchanged |
| Development Fund | 23% | +5% from stopped burn |
| π₯ Burn | 0% | Auto-stopped |
| Liquidity Pool | 15% | +5% from stopped burn |
| Marketing | 7% | Unchanged |
- Burn is active by default from genesis.
- Burns stop automatically when total burned reaches 200,000,000 DVC.
- Formula:
1,000,000,000 Γ 20% = 200,000,000 DVC - After burn stops, leftover burn fee is split equally between Dev Fund and Liquidity Pool.
- Burn address:
db1x000000000000000000000000000burnβ coins sent here are permanently destroyed.
- When liquidity vault balance reaches 200,000,000 DVC (20% of total supply):
- Protocol automatically locks 5% of liquidity for 5 years.
- Lock amount:
200,000,000 Γ 5% = 10,000,000 DVC - Smart-contract time-lock β cannot be withdrawn until lock expires.
- Unlock happens automatically after 5 years (
157,680,000 seconds).
- This only triggers once per deployment.
Type: Hybrid Layer-1 Blockchain
Consensus: Devil Hybrid Protocol (DHP)
| Layer | Component |
|---|---|
| Security | Proof of Stake (primary) |
| Anti-Spam | Micro Proof of Work |
| Governance | DAO Voting |
| Optimization | AI Scoring & Auto-healing |
User Transaction
β
Mempool Validation (nonce, sig, gas)
β
DevilGuard AI Risk Scan
β
Validator Selection (VRF-weighted PoS)
β
Micro PoW (spawn_blocking β async-safe)
β
Block Creation + Binary Merkle Root
β
DAO Signature (deterministic SHA-256)
β
Final Block Confirmation + Fee Split
| Layer | Technology |
|---|---|
| Core Language | Rust |
| Secondary Services | Python, Golang |
| Smart Contracts | Solidity + WASM |
| VM Engine | Modified EVM |
| Database | sled (embedded) |
| Networking | HTTP P2P gossip (libp2p-compatible) |
| APIs | REST (port 8545) + GraphQL (port 8546) |
| AI Runtime | ONNX Runtime / TinyML |
| Explorer | Next.js 14 + Tailwind CSS |
| Mobile Wallet | Flutter 3 |
| Social / Chat | Next.js 14 |
| Bridge Relayer | Python FastAPI |
| Storage | CID-based (IPFS-compatible) |
| Node Type | Min CPU | Min RAM | Min Disk | Min Stake | Port |
|---|---|---|---|---|---|
| Lite Node | 2 Core | 2 GB | 25 GB SSD | None | 30303 |
| Validator Node | 4 Core | 8 GB | 100 GB SSD | 100 DVC | 30303 |
| AI Node | 4 Core | 8 GB | 100 GB SSD | 100 DVC | 8547 |
| Archive Node | 8 Core | 16 GB | 1 TB SSD | None | 30303 |
| Storage Node | 2 Core | 4 GB | 500 GB HDD | None | 8548 |
Engine: DevilMine Β |Β Algorithm: DVLHash-AI
- β CPU-optimized & accessible
- β Anti-ASIC & Anti-GPU domination
- β Dynamic difficulty adjustment
- β AI-assisted optimization (+bonus DVC per block)
- β Block Reward: 50 DVC per block (halving every 2.1M blocks)
# Set your miner address in docker-compose.yml or env:
MINER_ADDR=db1x<your_address>
MINER_STAKE=500000000 # 500 DVC in Β΅DVC
| Metric | Target |
|---|---|
| TPS | 5,000 β 20,000 |
| Block Time | 2 β 5 seconds |
| Finality | < 10 seconds |
| Gas Fee | 0.01 β 5% depending on tx type |
| Energy Usage | Very Low (PoS dominant) |
git clone https://github.com/david0154/DevilChain.git
cd DevilChain
docker compose up --build -d
docker compose ps # wait until all nodes report "healthy"
| Node | REST | GraphQL | Role |
|---|---|---|---|
| node1 | :8545 | :8546 | Seed + miner (MINING_ENABLED=true) |
| node2 | :8555 | :8556 | Follower β syncs from node1 |
| node3 | :8565 | :8566 | Follower β syncs from node1 + node2 |
docker compose -f docker/docker-compose.yml up --build -d
| Service | URL |
|---|---|
| REST API | http://localhost:8545 |
| GraphQL | http://localhost:8546/graphql |
| DevilGuard AI | http://localhost:8547 |
| DevilStorage | http://localhost:8548 |
| DevilBridge | http://localhost:8549 |
| DevilScan Explorer | http://localhost:3000 |
| DevilSocial | http://localhost:3001 |
| DevilChat | http://localhost:3002 |
| DevilWallet | http://localhost:3003 |
π Local test environment with URLs, test accounts and the AI explanation: docs/LOCAL_DEPLOY.md
π Full installation, environment variables and troubleshooting: docs/DOCKER.md, or run bash docker/start.sh all (auto-detects RAM: minimal / lite / full).
Deployed on a VPS? The server IP is detected automatically β no address is hardcoded:
bash docker/start.sh urls(orstatus) prints the public IP, the LAN IP and every service asIP:port.- DevilWallet β Server & ports (
http://<server-ip>:3003/server) shows the same live detection in the browser: all detected IPs, every service port, and an up/down health check for each service. docker/deploy.shends with the detected IP and the full URL list after deploying.- The node itself advertises the address it was reached on:
GET /api/networkandGET /api/chain/paramsreturnhttp://<server-ip>:8545(and the matching GraphQL/explorer URLs) instead oflocalhostunlessPUBLIC_REST_URL/PUBLIC_GRAPHQL_URL/PUBLIC_EXPLORER_URLare set explicitly.
The full stack's memory limits total ~880 MB (node 288 MB, AI 96 MB, storage 48 MB, bridge 96 MB, explorer 112 MB, social/chat/wallet 80 MB each) and the node keeps its own footprint flat as the chain grows:
- sled page cache capped (
SLED_CACHE_MB=32) and glibc arenas capped (MALLOC_ARENA_MAX=2) - one small block append per block plus a full state snapshot every 20 blocks (
STATE_SNAPSHOT_EVERY), so disk write cost does not grow with chain length; the node replays the blocks after the last snapshot on restart - bounded chat / internal-transaction history (
MAX_CHAIN_CHAT,MAX_INTERNAL_TXS, default 5000; blocks, balances and NFTs are never trimmed) - Next.js apps bounded with
NODE_OPTIONS=--max-old-space-size=64β¦96
bash docker/start.sh all auto-selects the stack from RAM: the lite profile
(docker/docker-compose.lite.yml: node, AI, bridge, explorer, wallet, ~940 MB of limits) below 1.5 GB,
node + AI only below 800 MB, the full nine-service stack otherwise. Force a profile with
DEVIL_COMPOSE=lite or DEVIL_COMPOSE=full.
State-changing calls are Ed25519 signed. Build
message = "from:to:amount:gas_fee:nonce:timestamp", take its hex SHA-256
(tx_hash) and sign that string β all amounts are integers in Β΅DVC.
# 50 DVC = 50,000,000 Β΅DVC; transfer gas = 0.3% = 150,000 Β΅DVC
TS=$(date +%s)
curl -X POST http://localhost:8545/api/send \
-H 'Content-Type: application/json' \
-d "{
\"from\": \"db1x<your_address>\",
\"to\": \"db1x<recipient>\",
\"amount\": 50000000,
\"gas_fee\": 150000,
\"nonce\": 0,
\"timestamp\": $TS,
\"tx_type\": \"Transfer\",
\"public_key\": \"<hex_ed25519_pubkey>\",
\"signature\": \"<hex_ed25519_sig_over_hex_sha256_of_the_message>\"
}"
bash docker/quick_test.shruns a complete signed flow (wallet β faucet β transfer β mined block). The timestamp must be within Β±600 s of node time.
GET /api/status
GET /api/block/latest
GET /api/block/{height}
GET /api/tx/{hash}
GET /api/wallet/{address}
GET /api/validators
GET /api/dao/proposals
GET /api/coin
GET /api/peers
POST /api/send
POST /api/stake
POST /api/vote
POST /api/faucet
POST /api/p2p/block
query { status }
query { block(height: 1) { blockHash validator txCount } }
query { latestBlock { height blockHash aiScore } }
query { transaction(hash: "0xabc...") { from to amount } }
query { wallet(address: "db1x...") { balance nonce } }
Voting Power = Stake Amount Γ Reputation Score (integer, no f64)
- Proposals: any validator with enough stake can create
- Voting window: 10,000 blocks
- Quorum required for pass
- Proposals auto-tally after every mined block
- DAO signature embedded in every block header
DevilChain/
βββ core/ # Rust blockchain core
β βββ src/
β βββ blockchain/ # Block, Transaction, Ledger, Merkle
β βββ consensus/ # DHP, VRF validator selection
β βββ tokenomics/ # Supply, burn cap, fee split, timelock
β βββ wallet/ # Ed25519 keygen (OsRng)
β βββ mempool/ # Nonce-protected fee-priority queue
β βββ mining/ # spawn_blocking PoW
β βββ network/ # HTTP P2P gossip
β βββ api/ # REST (axum)
β βββ graphql/ # GraphQL (async-graphql)
β βββ storage/ # sled persistence
β βββ dao/ # Proposals + voting + tally
β βββ ai/ # DevilGuard rule-based scorer
βββ wallet/ # DevilX Wallet (Flutter)
βββ explorer/ # DevilScan Explorer (Next.js 14)
βββ contracts/ # Smart contracts (Solidity)
βββ ai/ # DevilGuard AI (Python FastAPI)
βββ storage/ # DevilStorage Node
βββ identity/ # DevilID (DID:devil)
βββ social/ # DevilSocial (Next.js 14)
βββ chat/ # DevilChat (Next.js 14)
βββ bridge/ # DevilBridge (Python FastAPI)
βββ sdk/ # SDKs (JS, Kotlin, Swift, Rust, Python)
βββ docker-compose.yml # 3-node testnet
βββ Dockerfile
βββ docs/
βββ fee-schedule.md
βββ burn-liquidity-rules.md
- Signatures: Ed25519 (real cryptography,
OsRngβ notthread_rng) - Wallet Encryption: AES-256-GCM
- Key Exchange: Curve25519
- Recovery: BIP39-style mnemonic (12 words)
- TX Verification: Every transaction verified on mempool entry, mining, and block acceptance
- AI Security: DevilGuard AI scores every block (reject if < 50/100)
- Anti-Sybil: Stake-based identity + DAO approval
- Replay Protection: Nonce-based (tx nonce must equal ledger nonce exactly)
- No f64 for money: All amounts are
u128Β΅DVC β zero precision loss
NFTs are native chain state β no EVM contracts, no side database. Blockchain::nfts
holds ownership, collection, price and transfer count, all persisted with the chain
snapshot and paid in DVC.
| Endpoint | Purpose |
|---|---|
GET /api/nft, /api/nft/market, /api/nft/{id}, /api/nft/owner/{address} |
browse |
POST /api/nft/mint |
signed nft:mint:{name}:{uri}:{ts} |
POST /api/nft/list |
signed nft:list:{id}:{price}:{ts} (owner) |
POST /api/nft/transfer |
signed nft:transfer:{id}:{to}:{ts} (owner) |
POST /api/nft/buy |
signed nft:buy:{id}:{ts} β pays price + 0.01 DVC gas |
Mint and trade from DevilWallet β NFT (http://localhost:3003/nft).
DevilChat is chain-indexed. It keeps its wallet-session login, then writes every
message into chain state through the node (POST /api/chat/relay, guarded by the shared
CHAT_RELAY_KEY) or directly with a wallet signature (POST /api/chat/messages, payload
chat:{room}:{sha256(text)}:{ts}). DM rooms are dm:<lower>:<higher>; history comes back
from GET /api/chat/messages?room=β¦, so a conversation can be rebuilt from the chain.
Admin tooling is developer-only: POST /api/admin/check verifies a signed challenge against
DEV_ADMIN_PUBKEY before DevilWallet loads any treasury data, and no public page links to
/admin.
| Phase | Deliverables | Status |
|---|---|---|
| Phase 1 | Blockchain core, Wallet, Explorer, DAO, Testnet | β Complete |
| Phase 2 | Smart contracts, Staking, NFT support, Validators | β Complete |
| Phase 3 | DevilGuard AI, AI Node, AI moderation | β Complete |
| Phase 4 | DevilSocial, DevilChat, DevilID, DevilStorage | β Complete |
| Phase 5 | DevilBridge, Mainnet launch, DevilOS | π In Progress β bridge relayer + mainnet profile (docker/docker-compose.mainnet.yml) and the low-RAM (β€1 GB) stack are live; DevilOS pending |
Copyright Β© 2026 Nexuzy Lab & Devil One. All rights reserved.
| Testnet | Mainnet | |
|---|---|---|
| Chain id | devl-testnet-1 (18545 / 0x4871) |
devl-mainnet-1 (18546 / 0x4872) |
| REST + JSON-RPC | http://localhost:8545 |
http://localhost:9545 |
| GraphQL | http://localhost:8546/graphql |
http://localhost:9546/graphql |
| Explorer / Wallet | :3000 / :3003 |
point them at :9545 |
| Faucet | on (6 h) | off |
- Node landing page β
http://localhost:8545/now serves a live status page (height, validators, accounts, API map), not a 404. - Add to MetaMask / Trust Wallet β
POST /is a read-only JSON-RPC facade (eth_chainId,eth_blockNumber,eth_getBalance,eth_getTransactionByHash,eth_gasPrice,eth_syncing). DevilChain is not EVM: transfers are Ed25519 and signed in DevilWallet. Full steps: docs/NETWORKS.md, or the Network page in DevilWallet. - Integrator endpoints β
/api/network(add-to-wallet config),/api/chain/params(consensus, fees, features),/api/validators,/api/holders,/api/tokens. - GraphQL β typed
status,blocks,transactions,holders,wallet,coinqueries with CORS enabled (/graphiqlopens GraphiQL). - AI safety β DevilGuard scores every wallet 1-100 with an auditable
factor breakdown, stores community scam reports, runs anti-honeypot /
liquidity checks, and scans every new block in the background. Public
endpoints:
/trust/{address},/report,/liquidity/check,/alerts,/summary. Any OpenAI-compatible LLM can add a short note (AI_API_KEY,AI_BASE_URL,AI_MODEL). See docs/AI.md. - Docs hub β
http://localhost:3000/docsdocuments REST, GraphQL, JSON-RPC, AI, bridge and the social/chat APIs. Support center:http://localhost:3003/support.
| Mode | Command | Footprint |
|---|---|---|
| Full stack (Docker) | docker compose -f docker/docker-compose.yml up -d --build |
~2 GB RAM |
| Lite stack (Docker) | docker compose -f docker/docker-compose.lite.yml up -d --build |
~1 GB RAM |
| No Docker at all | bash scripts/run-native.sh (Linux/macOS/WSL) Β· `powershell -ExecutionPolicy Bypass -File scripts |
|
| un-native.ps1` (Windows) | node + 2 UIs, ~400 MB |
The lite stack runs the node, DevilScan, DevilWallet, DevilBridge and DevilGuard AI
(no social/chat/storage). The native runner builds the Rust node (cargo build --release)
and starts the explorer and wallet with npm run dev; the chain lives in ./data/chain,
so no database server is required. Add all (bash scripts/run-native.sh all) to also
start the bridge and AI services from their Python virtualenvs.
Mainnet runs next to testnet on shifted ports:
| Testnet | Mainnet | |
|---|---|---|
| REST | :8545 | :9545 |
| GraphQL | :8546/graphql | :9546/graphql |
| Explorer / Wallet | :3000 / :3003 | β (point them at :9545) |
| Faucet | on | off |
GET /api/chain/params is the exchange/wallet handshake; GET /api/holders lists the
richest accounts and GET /api/transactions includes treasury payouts (real tx hash,
gas fee and tx_type: "treasury").
This project is licensed under the MIT License β see the LICENSE file for full details.
Built with β€οΈ by Nexuzy Lab Β |Β Powered by Devil One Β |Β Lead Dev: David @david0154
π nexuzy.in Β Β β’Β Β π devilone.in Β Β β’Β Β β Star on GitHub
