Skip to content

Vahe327/Quantum-Sharded-Network-Docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quantum Sharded Network (QSN)

A post-quantum secure, sharded blockchain with multi-VM support.

Open Source Notice

QSN will become open source after mainnet launch.

Currently, this documentation describes how to USE the network. Detailed implementation documentation and full source code will be publicly available after mainnet is live and stable.

After open source release:

  • Full source code on GitHub
  • Detailed technical specifications
  • Implementation guides
  • Contribution guidelines

Overview

QSN is a production-grade blockchain implementing:

  • Hybrid Post-Quantum Cryptography - Ed25519 + Dilithium3 (NIST Level 3)
  • Multi-VM Architecture - EVM, TVM, and QVM support
  • Dynamic Sharding - Automatic shard split/merge based on load
  • BFT Consensus - Tendermint-style with Proof of Stake
  • Cross-Shard Transactions - Atomic 2PC protocol with Merkle proofs

Architecture

┌─────────────────────────────────────────────────────────────┐
│                      Masterchain (-1)                        │
│              Coordinates all workchains                      │
└─────────────────────────────────────────────────────────────┘
        │                    │                    │
        ▼                    ▼                    ▼
┌───────────────┐  ┌───────────────┐  ┌───────────────┐
│  Workchain 0  │  │  Workchain 1  │  │  Workchain 2  │
│     (EVM)     │  │     (TVM)     │  │     (QVM)     │
└───────────────┘  └───────────────┘  └───────────────┘
        │                    │                    │
   ┌────┴────┐          ┌────┴────┐          ┌────┴────┐
   │ Shards  │          │ Shards  │          │ Shards  │
   └─────────┘          └─────────┘          └─────────┘

Key Features

Post-Quantum Security

  • Signatures: Dilithium3 (NIST standard) for all validator operations
  • Key Encapsulation: Kyber1024 for secure key exchange
  • Hash Functions: BLAKE3 for block hashing, Keccak256 for Merkle trees

Consensus

  • Type: Byzantine Fault Tolerant (BFT) with Proof of Stake
  • Finality: 2/3+ validator threshold
  • Block Time: 3 seconds
  • Slashing: Stake confiscation for double-voting

Virtual Machines

  • QVM: Native quantum-resistant VM with DeFi opcodes
  • EVM: Full Ethereum compatibility
  • TVM: TON Virtual Machine support

Sharding

  • Dynamic Split/Merge: Based on TPS and state size
  • Cross-Shard: Atomic transactions with 2PC protocol
  • Scalability: Linear scaling with shard count

Network Parameters

Parameter Testnet (Pyuniq) Mainnet
Chain ID 99991 1
Token Symbol tQSN QSN
Block Time 3 seconds 3 seconds
Min Validator Stake 100 tQSN 0.1 QSN
Max Validators 100 100
Block Gas Limit 30,000,000 30,000,000

Quick Start

Run a Node

# Initialize blockchain
./qsn init --network pyuniq --validators 3

# Start node
./qsn node --network pyuniq --validator ./keys/validator_0.json

# Check status
./qsn status --network pyuniq

Create Wallet

# Create new wallet
./qsn wallet create --name "my-wallet"

# Check balance
./qsn balance <address> --network pyuniq

# Request testnet tokens
./qsn faucet <address> --network pyuniq

Deploy Contract

# Compile contract
./qsn compile qubit ./contracts/token.q -o token.qbin

# Deploy
./qsn deploy --bytecode token.qbin --from <address> --network pyuniq

RPC Endpoints

  • Testnet RPC: http://localhost:9545
  • Testnet WebSocket: ws://localhost:9546
  • QVM Server: http://localhost:7777

Supported Methods

  • eth_* - Full Ethereum JSON-RPC compatibility
  • qsn_* - QSN-specific methods (validators, staking, tokens)
  • qvm_* - QVM execution and DeFi operations
  • tvm_* - TON VM compatibility layer

Documentation

Core

Virtual Machines

Features

Network

Execution

Operations

Testnet

Tools

License

Proprietary - Will be released under MIT License after mainnet launch.

Links

  • Testnet Explorer: Coming soon
  • Documentation: This repository

About

Documentation for Quantum Sharded Network (QSN) - Post-quantum secure blockchain with multi-VM support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors