Skip to content

Quantum-safe, bridge-free cross-chain interoperability platform using NIST PQC standards and Zero-Knowledge Proofs.

License

Notifications You must be signed in to change notification settings

allianzatech/blockchainallianza

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌐 Allianza Blockchain

License Python Flask Status

Quantum-Safe, Bridge-Free Cross-Chain Interoperability Platform

Live Demo β€’ Documentation β€’ Security β€’ Contributing


πŸ“Œ Executive Summary

Allianza Blockchain is a next-generation interoperability protocol enabling real cross-chain transfers between completely different blockchains (Bitcoin, Ethereum, Polygon, Solana) without bridges, custody, or wrapped tokens β€” using cryptographic proofs and quantum-resistant security. The protocol provides a production-ready foundation for enterprises, financial institutions, and exchanges seeking secure, auditable cross-chain interoperability without the risks associated with traditional bridge solutions. A working testnet with verifiable on-chain proofs is publicly available.


🎯 Overview

Allianza Blockchain is a production-grade, quantum-safe interoperability platform that enables real cross-chain transfers between completely different blockchains (Bitcoin, Ethereum, Polygon, Solana) without bridges, custody, or wrapped tokens.

πŸ’Ό Commercial Licensing: Production deployments, enterprise integrations, and real cross-chain adapters are available under a commercial license. Contact us for production access.


πŸ‘₯ Who is this for?

This platform is designed for:

  • πŸ” Blockchain Developers - Build decentralized applications with cross-chain capabilities
  • 🏦 Financial Institutions - Integrate secure, quantum-resistant interoperability into banking systems
  • πŸ’± Exchanges & Custodians - Enable cross-chain transfers without bridge custody risks
  • 🏒 Enterprises - Deploy production-grade interoperability with compliance and SLA support
  • πŸ”¬ Researchers & Academics - Study quantum-safe cryptography and bridge-free interoperability protocols

⚠️ What is NOT included here

This public repository provides the open core of Allianza Blockchain. The following are NOT included and require a commercial license:

  • ❌ Production Execution Engines - Real transaction signing and broadcasting services
  • ❌ Enterprise Integrations - Custom adapters, compliance layers, and regulatory features
  • ❌ SLA-Backed Infrastructure - Production deployment with service level agreements
  • ❌ Commercial Support - Technical support, roadmap influence, and priority assistance
  • ❌ Mainnet Adapters - Production-ready blockchain connectors for mainnet operations

For production deployment, enterprise features, or commercial use, please contact: [email protected]

🌟 Key Innovations

  • πŸ” Quantum-Safe Security - Post-quantum cryptography (NIST PQC standards: ML-DSA, ML-KEM, SPHINCS+)
  • πŸŒ‰ Bridge-Free Interoperability - Direct transfers without custodial bridges or wrapped tokens
  • πŸ”’ Zero-Knowledge Proofs - Every cross-chain state transition is cryptographically verified
  • πŸ†” UChainID - Universal Chain ID for on-chain traceability of cross-chain transfers
  • ⚑ Real Cross-Chain Transfers - Live Polygon β†’ Bitcoin testnet transfers with on-chain verification

πŸ“‹ Open Core Strategy

Allianza Blockchain follows an "Open Core + Paid Brain" strategy:

🟒 Open Source (MIT License)

  • βœ… Core Protocol - ALZ-NIEV protocol, UChainID system, quantum security specs
  • βœ… Testnet - Full testnet implementation for development and testing
  • βœ… Documentation - Complete specs, whitepapers, and technical proofs
  • βœ… Examples - Educational examples and demos

πŸ”’ Commercial License Required

Production deployments, enterprise integrations, and real cross-chain adapters are available under a commercial license.

  • πŸ”’ Production Adapters - Production-ready blockchain connectors
  • πŸ”’ Enterprise Integration - Custom adapters, compliance, optimization
  • πŸ”’ Support & Services - Production deployment, SLA, roadmap influence

For commercial use, production deployment, or enterprise integration, please contact: [email protected]

Commercial Code Repository: Production implementations are available in our private repository: blockchainallianza-business (private, requires license)

πŸ“– Learn more: See OPEN_CORE_STRATEGY.md and COMMERCIAL_LICENSE.md


πŸš€ Live Demo

Testnet Dashboard: https://testnet.allianza.tech

Example Real Transaction

Polygon β†’ Bitcoin Testnet Transfer:


✨ Features

πŸ” Quantum-Safe Cryptography

  • NIST PQC Standards: ML-DSA (signatures), ML-KEM (key exchange), SPHINCS+ (hash-based)
  • QRS-3 (Triple Redundancy): Three independent PQC signatures for maximum security
  • Quantum Attack Resistance: Protection against Shor's and Grover's algorithms
  • Cryptographic Agility: Easy migration to new PQC standards

πŸŒ‰ Bridge-Free Interoperability (ALZ-NIEV)

  • No Custody: No locked funds in bridge contracts
  • No Wrapped Tokens: Direct native token transfers
  • No Intermediaries: Peer-to-peer cross-chain execution
  • UChainID System: Global identifier for cross-chain transfers
  • ZK Proofs: Cryptographic verification of state transitions

πŸ”— Supported Blockchains

  • βœ… Bitcoin (Testnet/Mainnet)
  • βœ… Ethereum (Testnet/Mainnet)
  • βœ… Polygon (Testnet/Mainnet)
  • βœ… Solana (Testnet/Mainnet)
  • βœ… BSC (Binance Smart Chain)
  • βœ… Allianza Native Chain

πŸ›‘οΈ Security Features

  • CSRF Protection - Applied to all critical routes
  • Rate Limiting - Global protection against DDoS
  • Input Validation - Comprehensive sanitization
  • Security Headers - CSP, COEP, COOP
  • Audit Logging - Complete transaction traceability
  • Path Traversal Protection - Secure file handling

πŸ“‹ Table of Contents


πŸš€ Quick Start

Prerequisites

  • Python 3.10+
  • pip and virtualenv (recommended)
  • Node.js (optional, for rebuilding Tailwind/JS assets)

Installation

# Clone the repository
git clone https://github.com/allianzatech/blockchainallianza.git
cd blockchainallianza

# Create virtual environment
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate

# Install dependencies
pip install --upgrade pip
pip install -r requirements.txt

Configuration

Create a .env file in the project root. See the example below for required variables:

Required Variables:

# Flask Configuration
FLASK_ENV=development
FLASK_DEBUG=True
SECRET_KEY=your-secret-key-here  # Generate with: python -c "import secrets; print(secrets.token_hex(32))"

# Blockchain APIs (Testnet)
BLOCKCYPHER_API_TOKEN=your_blockcypher_token
BITCOIN_PRIVATE_KEY=your_bitcoin_testnet_wif
BITCOIN_TESTNET_ADDRESS=your_bitcoin_testnet_address

# EVM Chains (Testnet)
POLYGON_PRIVATE_KEY=your_polygon_private_key
ETH_PRIVATE_KEY=your_ethereum_private_key
POLYGON_RPC_URL=https://polygon-mumbai.g.alchemy.com/v2/YOUR_KEY
ETH_RPC_URL=https://eth-sepolia.g.alchemy.com/v2/YOUR_KEY

# Solana (Testnet)
SOLANA_PRIVATE_KEY=your_solana_private_key
SOLANA_RPC_URL=https://api.testnet.solana.com

⚠️ Important:

  • Never commit real mainnet keys. Only use testnet keys for development.
  • The .env file is already in .gitignore to prevent accidental commits.
  • For a complete list of environment variables, see the configuration section in the codebase.

Run Locally

Development Mode:

python allianza_blockchain.py

Production Mode (Gunicorn):

gunicorn -w 2 -b 0.0.0.0:5000 --timeout 300 --keep-alive 5 --preload wsgi_optimized:application

Then open: http://localhost:5000/interoperability


πŸ—οΈ Architecture

Core Components

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    Allianza Blockchain                       β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                                                               β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”‚
β”‚  β”‚  Quantum     β”‚  β”‚  ALZ-NIEV    β”‚  β”‚  UChainID    β”‚     β”‚
β”‚  β”‚  Security    β”‚  β”‚  Interop     β”‚  β”‚  System      β”‚     β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β”‚
β”‚                                                               β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”‚
β”‚  β”‚  ZK Proofs  β”‚  β”‚  Cross-Chain β”‚  β”‚  State       β”‚     β”‚
β”‚  β”‚  System     β”‚  β”‚  Bridge      β”‚  β”‚  Machine     β”‚     β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β”‚
β”‚                                                               β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Technology Stack

  • Backend: Python 3.10+, Flask 2.3.3
  • Blockchain: Web3.py, bitcoinlib, python-bitcointx, solana-py
  • Cryptography: liboqs-python (NIST PQC), cryptography
  • Database: SQLite (development), PostgreSQL-ready
  • Frontend: HTML5, Tailwind CSS, JavaScript
  • Deployment: Gunicorn, Render.com

πŸ”’ Security

Security Audit

A comprehensive security audit has been performed. See:

Security Features Implemented

βœ… Path Traversal Protection - Secure file download validation
βœ… CSRF Protection - Applied to all critical POST routes
βœ… Rate Limiting - Global DDoS protection
βœ… Input Validation - Comprehensive sanitization
βœ… Security Headers - CSP, COEP, COOP
βœ… SECRET_KEY Validation - Production environment checks
βœ… Audit Logging - Complete transaction traceability

Dependency Security

Run security checks:

python scripts/check_dependencies_security.py

Or directly:

pip-audit

πŸ“š Documentation

Core Documentation

Module Documentation

API Documentation

Technical Proofs

  • Complete Technical Proofs: COMPLETE_TECHNICAL_PROOFS_FINAL_EN.json
  • On-Chain Proofs: proofs/on_chain/
  • Interoperability Proofs: proofs/interoperability/

πŸ§ͺ Testing

Running Tests

# Complete validation suite
python complete_validation_suite.py

# Professional test suite
python testnet_professional_test_suite.py

# Critical tests
python critical_tests_suite.py

# All tests
python run_all_tests.py

# With pytest (if installed)
pytest tests/

# With coverage report
pytest tests/ --cov=. --cov-report=html

Test Structure

tests/
β”œβ”€β”€ public/              # Public test suite
β”œβ”€β”€ test_results/        # Test results
└── ...

test_results/
β”œβ”€β”€ test_results_complete.json
└── ...

Test Coverage

  • βœ… Cross-chain interoperability
  • βœ… Quantum-safe cryptography
  • βœ… ZK proof generation and verification
  • βœ… UChainID system
  • βœ… Security features (CSRF, rate limiting)
  • βœ… Input validation
  • βœ… Real blockchain transactions (testnet)

Writing Tests

See CONTRIBUTING.md for guidelines on writing tests.


🀝 Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/my-improvement
  3. Make your changes (follow code style guidelines)
  4. Add tests for new features
  5. Commit your changes: git commit -m "Add my improvement"
  6. Push to your branch: git push origin feature/my-improvement
  7. Open a Pull Request

Code Style

  • Follow PEP 8 for Python code
  • Use type hints where appropriate
  • Add docstrings to functions and classes
  • Write tests for new features

Reporting Issues

If you find a bug or have a suggestion, please open an issue on GitHub with:

  • Clear description of the problem
  • Steps to reproduce (if applicable)
  • Expected vs. actual behavior
  • Environment details (Python version, OS, etc.)

πŸ“Š Project Status

βœ… Completed Features

  • Quantum-safe cryptography (NIST PQC standards)
  • Bridge-free cross-chain interoperability
  • UChainID system
  • ZK proof generation and verification
  • Real cross-chain transfers (Polygon β†’ Bitcoin)
  • Testnet dashboard
  • Security audit and fixes
  • Comprehensive test suite

🚧 In Progress

  • Mainnet deployment
  • Additional blockchain support
  • Performance optimizations
  • Enhanced documentation

πŸ“… Planned

  • Mobile SDK
  • Browser extension
  • Advanced analytics dashboard
  • Governance system

πŸ”— Links


πŸ“„ License

Open Source Components

The core protocol, testnet, documentation, and examples are licensed under the MIT License - see the LICENSE file for details.

Commercial Components

Production-ready implementations, enterprise features, and commercial use require a Commercial License. See COMMERCIAL_LICENSE.md for details.

Contact for commercial licensing: [email protected]


πŸ™ Acknowledgments

  • NIST for Post-Quantum Cryptography standards
  • liboqs for quantum-safe cryptography library
  • Open Source Community for various blockchain libraries

πŸ“§ Contact

For questions, suggestions, or collaboration opportunities:


Built with ❀️ by the Allianza Team

⭐ Star us on GitHub β€’ πŸ› Report Bug β€’ πŸ’‘ Request Feature