Skip to content

trvorth/Qanto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

377 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Status CI License Docs Website


QANTO — Quantum-Resistant Layer-0 Blockchain

The world's first post-quantum, AI-governed blockchain infrastructure.

Website · Explorer · Whitepaper · Discord · X/Twitter


Overview

Qanto is a production-grade Layer-0 blockchain engineered for extreme throughput, post-quantum security, and AI-driven governance. Its hybrid PoW + DPoS consensus model uses Proof-of-Work for permissionless leader election and Delegated Proof-of-Stake for sub-second block finality.

Key Design Principles:

  • Post-Quantum Security — CRYSTALS-Dilithium signatures, Kyber KEM, SPHINCS+ hash-based auth
  • DAG-Based Parallel Execution — 100,000+ TPS capacity with sub-second finality
  • AI Governance (SAGA) — Neural network-driven parameter tuning and threat response
  • Deflationary Tokenomics — Asymptotic halving curve with 21B hard cap

Author: trvorth (trvorth@qanto.org)


Tokenomics

Core Parameters

Parameter Value
Token Symbol QNTO
Native Decimals 6
Max Supply 21,000,000,000 QNTO
Initial Block Reward 2.5 QNTO
Target Block Time 1.0 second
Halving Period ~97.2 days (8,400,000 seconds)
Halving Factor 0.999 (0.1% reduction per period)
Chain ID 0x1234 (4660 decimal)

Deflationary Emission Curve

Qanto employs an asymptotic halving model where the block reward is multiplied by a 0.999 factor every ~97.2 days. Unlike Bitcoin's aggressive 50% halvings, this creates a smooth, predictable deflation curve:

Reward(period) = 2.5 × 0.999^period
Period Approximate Date Block Reward Cumulative % Emitted
0 Genesis 2.5000 QNTO 0%
100 ~26.7 years 2.2618 QNTO ~4.8%
500 ~133.3 years 1.5186 QNTO ~21.1%
1000 ~266.6 years 0.9215 QNTO ~36.8%

This model ensures long-term incentive alignment — validators and miners receive meaningful rewards for centuries, eliminating the "security budget crisis" that plagues aggressive-halving chains.

WQNTO (Wrapped QANTO)

The WQNTO ERC-20 compatible wrapper enables DEX liquidity provision on EVM chains:

Property Value
Contract Standard ERC-20 (Solidity ^0.8.20)
Decimals 6 (matches native QNTO)
Functions deposit(), withdraw(), transfer(), approve()
Overflow Protection Native Solidity 0.8.x checked arithmetic
Source SmartContracts/WQNTO.sol

Post-Quantum Security Architecture

Cryptographic Primitives

Algorithm Usage NIST Status Key Size
CRYSTALS-Dilithium Transaction signatures FIPS 204 (Approved) 2528 bytes (pk)
Kyber KEM Secure key exchange FIPS 203 (Approved) 1568 bytes (pk)
SPHINCS+ Hash-based fallback signatures FIPS 205 (Approved) 32-64 bytes (pk)
Qanhash32x PoW mining algorithm Custom N/A

Security Layers

┌─────────────────────────────────────────────┐
│  Application Layer (Smart Contracts, DApps)  │
├─────────────────────────────────────────────┤
│  Consensus Layer (PoW + DPoS + PoSe + SAGA) │
├─────────────────────────────────────────────┤
│  Network Layer (libp2p, WSS, P2P Mesh)       │
├─────────────────────────────────────────────┤
│  Cryptographic Layer (PQC Suite)             │
│  • Dilithium Signatures                     │
│  • Kyber Key Encapsulation                   │
│  • SPHINCS+ Hash-Based Auth                  │
│  • Qanhash32x PoW                            │
└─────────────────────────────────────────────┘

DEX & CEX Integration

For DEX Integrators

  1. Deploy WQNTO.sol to your target EVM chain using SmartContracts/deploy_wqnto.js
  2. Pair WQNTO with your desired liquidity token (USDT, USDC, ETH)
  3. Use the standard ERC-20 ABI — available at Frontend/website/assets/json/WQNTO_ABI.json
# Deploy WQNTO to target chain
cd SmartContracts
RPC_URL=https://your-chain-rpc PRIVATE_KEY=0x... node deploy_wqnto.js

For CEX Integrators

The complete CEX listing payload is available at SmartContracts/cex-listing-payload.json.

Required API Endpoints (CoinMarketCap / Binance Compatible):

Endpoint Method Response
/api/v1/supply/circulating GET Plain text — circulating supply
/api/v1/supply/total GET Plain text — 21000000000
/api/v1/supply/max GET Plain text — 21000000000
/rpc (eth_blockNumber) POST JSON-RPC hex block height

Token Metadata:

{
  "name": "QNTO",
  "symbol": "QNTO",
  "decimals": 6,
  "chainId": "0x1234",
  "maxSupply": 21000000000,
  "initialBlockReward": 2.5,
  "targetBlockTimeSeconds": 1.0
}

Performance Benchmarks

Benchmarks conducted on Apple M-series CPU with integrated GPU.

Benchmark Time Throughput Notes
CPU Hashrate (1k) ~281 µs 3.55 MHash/s Single-core Qanhash
GPU Hashrate (1 batch) ~3.67 ms 17.85 MHash/s 65,536 parallel hashes
Execution Layer (16k txs) ~79.7 ms 200,580 TPS Full block payload
Hyperscale (1.6M txs) ~62.8 ms 25,447,000 TPS Sharded execution
PQ Signatures ~1.2 ms 833 sigs/sec Dilithium verification
Cross-Chain Verify ~15 ms 66 proofs/sec Light client proofs

Architecture

Repository Structure

qanto/
├── Protocol_Core/
│   ├── qanto-node/src/       # Core node implementation (Rust)
│   │   ├── node.rs           # Main orchestration
│   │   ├── consensus.rs      # PoW + DPoS + PoSe
│   │   ├── emission.rs       # Tokenomics & halving logic
│   │   ├── qantodag.rs       # DAG ledger & sharding
│   │   ├── p2p.rs            # libp2p networking
│   │   ├── wallet.rs         # Encrypted wallet management
│   │   ├── saga.rs           # AI governance engine
│   │   ├── zk.rs             # Zero-knowledge circuits
│   │   └── post_quantum_crypto.rs  # PQC suite
│   └── qanto-rpc/            # gRPC/JSON-RPC server
├── Frontend/
│   └── website/              # Production website (Cloudflare Pages)
│       ├── index.html
│       ├── assets/css/       # Glassmorphism dark-mode styles
│       └── assets/js/os.js   # SAGA-OS window manager + RPC telemetry
├── SmartContracts/
│   ├── WQNTO.sol             # Wrapped QANTO (ERC-20, 6 decimals)
│   ├── deploy_wqnto.js       # Deployment script (ethers.js)
│   ├── token-info.json       # Canonical token metadata
│   └── cex-listing-payload.json  # CEX integration payload
└── docs/
    ├── whitepaper/           # Academic whitepaper
    └── ROADMAP.md            # Development roadmap

Consensus Model

Qanto's hybrid consensus combines three mechanisms:

  1. Proof-of-Work (PoW) — Qanhash algorithm for permissionless leader election with ASIC resistance
  2. Delegated Proof-of-Stake (DPoS) — Validator selection for fast finality (sub-second)
  3. Proof-of-Storage/Execution (PoSe) — Resource utilization verification

SAGA (AI Governance) continuously optimizes parameters, detects anomalies, and adjusts difficulty in real-time.


Quick Start

Prerequisites

  • Rust 1.75+ with Cargo
  • System: Linux / macOS / Windows
  • RAM: 8–16 GB recommended
  • Storage: 50 GB+ SSD

Build & Run

# Clone
git clone https://github.com/trvorth/Qanto.git
cd Qanto

# Build
cargo build --release

# Run node
cargo run --release --features infinite-strata --bin qanto -- \
  start --config config.toml --wallet wallet.key --clean

# Run tests
cargo test --release

Docker

docker pull qanto/node:latest
docker run -d --name qanto-node \
  -p 8545:8545 -p 30303:30303 \
  -v qanto-data:/data qanto/node:latest

Connect via RPC

# Check block height
curl -s -X POST https://trvorth-qanto-testnet.hf.space/rpc \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'

Configuration

[network]
port = 30303
bootstrap_nodes = ["/ip4/seed1.qanto.org/tcp/30303/p2p/12D3KooW..."]

[rpc]
http_port = 8545
ws_port = 8546

[consensus]
block_time = 1000      # 1.0 second target
max_block_size = 83886080
validator_set_size = 101

[mining]
enabled = true
algorithm = "qanhash"
threads = 0            # 0 = auto-detect
gpu_enabled = true

Testnet

Parameter Value
Network Name QANTO Testnet
Chain ID 0x1234 (4660)
RPC https://trvorth-qanto-testnet.hf.space/rpc
WebSocket wss://trvorth-qanto-testnet.hf.space/ws
Explorer qanto.org/public/explorer

Add to MetaMask

{
  "chainId": "0x1234",
  "chainName": "QANTO Testnet",
  "nativeCurrency": { "name": "QNTO", "symbol": "QNTO", "decimals": 6 },
  "rpcUrls": ["https://trvorth-qanto-testnet.hf.space/rpc"],
  "blockExplorerUrls": ["https://qanto.org/public/explorer/index.html"]
}

Security

Report vulnerabilities responsibly:

  • Email: security@qanto.org
  • Response Time: 24–48 hours
  • Bug Bounty: Up to $1,000 for critical vulnerabilities

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/my-feature)
  3. Run cargo test --all && cargo fmt && cargo clippy
  4. Submit a Pull Request

See CONTRIBUTING.md for detailed guidelines.


License

MIT License — see LICENSE for details.


Qanto — Quantum-Resistant Layer-0 Blockchain

Website · Explorer · X/Twitter · Discord

About

Layer-0 blockchain featuring a DAG with hybrid consensus, governed by its SAGA AI for dynamic network optimization and unprecedented scalability.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors