Skip to content

About

DevilChain Network - Lightweight Hybrid AI-Powered DAO Blockchain Ecosystem | Native Coin: DevilCoin (DVC/DVL)

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

DevilChain

DevilChain Network Logo

DevilChain Network

Lightweight Hybrid AI-Powered DAO Blockchain Ecosystem
Native Coin: DevilCoin Β |Β  On-chain ticker: DVC Β |Β  DEX / exchange ticker: DVL


πŸ‘¨β€πŸ’» Developer & Credits

🏒 Developed by



Nexuzy Lab β€” the innovation lab behind DevilChain.
Building next-generation Web3, AI, and blockchain infrastructure.

🌐 nexuzy.in

⚑ Powered by



Devil One β€” infrastructure & ecosystem partner.
Driving the DevilChain ecosystem forward.

🌐 devilone.in

Lead Developer: David Β |Β  @david0154 on GitHub


πŸͺ™ Coin Name & Ticker Explained

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.


πŸ”₯ Vision

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)

🌐 Core Ecosystem

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

πŸ’° Tokenomics β€” DevilCoin (DVC / DVL)

Supply

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

Genesis Allocation

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

πŸ’Έ Fee Schedule

Transaction Fee Rates

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.

Fee Distribution (active β€” burn < 200M DVC)

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 β€”

Fee Distribution (after burn cap reached β€” burn = 200M 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 Rule

  • 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.

πŸ’§ Liquidity Pool Auto-Lock Rule

  • 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.

πŸ—οΈ Architecture

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

Consensus Flow

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

βš™οΈ Tech Stack

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 Types

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

⛏️ Mining

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

🎯 Network Performance

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)

πŸš€ Quick Start

3-Node Testnet (Docker)

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

Full Product Stack (Docker)

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 (or status) prints the public IP, the LAN IP and every service as IP: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.sh ends with the detected IP and the full URL list after deploying.
  • The node itself advertises the address it was reached on: GET /api/network and GET /api/chain/params return http://<server-ip>:8545 (and the matching GraphQL/explorer URLs) instead of localhost unless PUBLIC_REST_URL / PUBLIC_GRAPHQL_URL / PUBLIC_EXPLORER_URL are set explicitly.

Runs on a 1 GB VPS (low-resource)

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.

Example: Send Transaction

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.sh runs a complete signed flow (wallet β†’ faucet β†’ transfer β†’ mined block). The timestamp must be within Β±600 s of node time.


πŸ”Œ API Reference

REST API (port 8545)

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

GraphQL (port 8546)

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 } }

πŸ—³οΈ DAO Governance

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

πŸ“ Repository Structure

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

πŸ›‘οΈ Security

  • Signatures: Ed25519 (real cryptography, OsRng β€” not thread_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 and on-chain chat

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.

πŸ—ΊοΈ Roadmap

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

πŸ“„ License

Copyright Β© 2026 Nexuzy Lab & Devil One. All rights reserved.


Networks, wallets and AI safety

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, coin queries with CORS enabled (/graphiql opens 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/docs documents REST, GraphQL, JSON-RPC, AI, bridge and the social/chat APIs. Support center: http://localhost:3003/support.

Run it (three ways)

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

About

DevilChain Network - Lightweight Hybrid AI-Powered DAO Blockchain Ecosystem | Native Coin: DevilCoin (DVC/DVL)

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages