Skip to content

david0154/DevilChain

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

⚡ 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

This starts:

Node REST GraphQL Role
node1 :8545 :8546 Seed / Bootstrap
node2 :8555 :8556 Syncs from node1
node3 :8565 :8566 Syncs from node1+node2

Service Map

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

Example: Send Transaction

curl -X POST http://localhost:8545/api/send \
  -H 'Content-Type: application/json' \
  -d '{
    "from": "db1x<your_address>",
    "to": "db1x<recipient>",
    "amount": 100000000,
    "gas_fee": 300000,
    "nonce": 0,
    "tx_type": "Transfer",
    "public_key": "<hex_ed25519_pubkey>",
    "signature": "<hex_ed25519_sig>"
  }'

All amounts in µDVC. 100000000 µDVC = 100 DVC. Gas for a Transfer = 0.3% = 300,000 µDVC = 0.30 DVC.


🔌 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

🗺️ 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

📄 License

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

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.tech   •   🌐 devilone.in   •   ⭐ Star on GitHub

About

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

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors