> For the complete documentation index, see [llms.txt](https://esper.gitbook.io/esperchain-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://esper.gitbook.io/esperchain-docs/miscellaneous/quantum-ai-bitcoin-qbtc.md).

# Quantum AI Bitcoin (qBTC)

Quantum AI Bitcoin is Esperchain's quantum vault implementation for Bitcoin - a quantum-resistant shadow ledger that preserves Bitcoin's complete UTXO model, monetary policy, and economic history while replacing vulnerable cryptographic primitives with post-quantum alternatives. When Q-Day arrives and quantum computers can break Bitcoin's ECDSA signatures, qBTC ensures seamless continuity without loss of value or network effects.

### What is Quantum AI Bitcoin?

Quantum AI Bitcoin is a **1:1 cryptographically mirrored ledger** that maintains perfect state parity with Bitcoin mainnet while upgrading its security foundation for the quantum era. Users can migrate their Bitcoin holdings through a single transaction, gaining quantum protection while preserving full access to their funds and Bitcoin's monetary properties.

#### Core Design Principles

**Perfect State Parity**: Every Bitcoin block header, UTXO balance, transaction history, and economic state is deterministically reproduced in qBTC.

**Quantum-Native Security**: All cryptographic primitives are replaced with NIST-standardized post-quantum alternatives that remain secure against Shor's algorithm.

**Seamless Migration**: Users opt-in with exactly one Bitcoin transaction, authorizing the bridge to lock their BTC and issue equivalent qBTC.

**Monetary Preservation**: The 21 million Bitcoin supply cap, halving schedule, and deflationary economics remain unchanged.

### Technical Architecture

#### Quantum-Resistant Proof-of-Work

**Mining Algorithm**: Traditional SHA-256 double-hashing is replaced with **RandomX-Q**, a memory-hard, lattice-mixing algorithm that resists both classical ASICs and quantum acceleration.

**Difficulty Retargeting**: Maintains Bitcoin's 10-minute block interval and difficulty adjustment mechanism unchanged.

**Hardware Impact**: The memory-hard properties of RandomX-Q democratize mining by favoring general-purpose hardware over specialized ASICs.

#### Post-Quantum Signatures

**Signature Scheme**: ECDSA signatures are replaced with **CRYSTALS-Dilithium III**, providing 128-bit security against quantum attacks.

**Script Upgrade**: Spend conditions transition from `OP_CHECKSIG` (ECDSA) to `OP_CHECKSIG_PQ` which verifies Dilithium signatures embedded in witness data.

**Legacy Compatibility**: Existing Bitcoin addresses can migrate through a one-time locking mechanism that burns coins on Layer 1 while exposing the post-quantum public key hash in the quantum vault.

#### Bridge Architecture

**Lock-and-Mint Process**

1. **Bitcoin Mainnet**: User sends BTC to a time-locked bridge contract
2. **Proof Generation**: Bridge generates Merkle proof of the lock transaction
3. **qBTC Minting**: Quantum vault's SPV contract verifies the proof and mints equivalent qBTC
4. **1:1 Parity**: Each satoshi on mainnet corresponds to exactly one qBTC unit

**Redemption Mechanism**

* **Pre-Q-Day**: Users can burn qBTC to unlock BTC on mainnet
* **Post-Q-Day**: Mainnet unlocks are permanently disabled for security
* **Emergency Access**: Social recovery mechanisms preserve access through threshold post-quantum signatures

### Migration Process

#### For Individual Users

1. **Generate PQ Keys**: Create a Dilithium keypair for the quantum vault
2. **Lock Transaction**: Send BTC to the bridge contract with your PQ public key
3. **Automatic Minting**: Receive equivalent qBTC in your quantum-secure wallet
4. **Quantum Protection**: All future transactions use post-quantum cryptography

#### For Institutional Holdings

**Multisig Migration**: Multi-signature wallets upgrade to threshold Dilithium schemes, preserving m-of-n semantics while gaining quantum resistance.

**Exchange Integration**: Centralized exchanges can migrate user funds in batches through institutional bridge contracts.

**Corporate Treasury**: Businesses can migrate Bitcoin reserves while maintaining the same monetary policy and store-of-value properties.

### Economic Model

#### Supply Mechanics

* **Fixed Supply**: 21 million qBTC maximum, identical to Bitcoin
* **Halving Schedule**: Block rewards follow Bitcoin's halving timeline
* **Inflation Rate**: Matches Bitcoin's disinflationary monetary policy

#### Fee Structure

* **Transaction Fees**: Comparable to Bitcoin Layer 1 fees
* **Bridge Fees**: Minimal fee for lock/unlock operations to cover verification costs
* **Mining Rewards**: Standard Bitcoin block reward + transaction fees

#### Value Proposition

* **Quantum Hedge**: Protection against the cryptographic obsolescence of Bitcoin
* **Network Effects**: Preservation of Bitcoin's liquidity and adoption
* **Monetary Properties**: Maintains Bitcoin's scarcity and store-of-value characteristics

### Security Guarantees

#### Quantum Resistance

**Signature Security**: Dilithium signatures remain secure against quantum computers running Shor's algorithm with theoretical advances in quantum error correction.

**Hash Security**: All cryptographic commitments use 512-bit quantum-resistant hashing, providing 256-bit security against Grover's algorithm.

**Bridge Security**: Zero-knowledge proofs (STARKs) eliminate trusted multisigs and provide cryptographic guarantees for cross-chain asset transfers.

#### Classical Security

**SPV Security**: Simplified Payment Verification maintains Bitcoin's trust model without requiring full node operation.

**Reorg Protection**: Quantum vault automatically invalidates blocks during Bitcoin mainnet reorganizations, maintaining consistency.

**Censorship Resistance**: Maintains Bitcoin's permissionless properties and resistance to centralized control.

### Ecosystem Integration

#### Wallets and Infrastructure

**Hardware Wallets**: Integration with post-quantum capable hardware security modules **Software Wallets**: Native support for Dilithium signatures and qBTC transactions **Block Explorers**: Full compatibility with Bitcoin block explorer interfaces

#### DeFi and Applications

**Lightning Network**: Post-quantum Lightning channels for instant qBTC payments **DeFi Protocols**: Integration with Esperchain's native DeFi ecosystem **Cross-Chain Bridges**: Seamless integration with other quantum vaults (qETH, qSOL)

#### Mining Infrastructure

**Pool Compatibility**: Existing mining pools can upgrade to RandomX-Q with minimal changes **Solo Mining**: Democratized mining through memory-hard algorithm **ASIC Transition**: Gradual migration from SHA-256 ASICs to general-purpose hardware

### Governance and Upgrades

#### Parameter Governance

**Algorithm Updates**: Community governance for cryptographic parameter updates **Bridge Parameters**: Adjustment of lock times and fee structures **Emergency Responses**: Rapid response mechanisms for security incidents

#### Upgrade Pathways

**Soft Forks**: Backward-compatible improvements to consensus rules **Hard Forks**: Community-coordinated upgrades for major protocol changes **Emergency Upgrades**: Fast-track upgrades for critical security issues

### Risk Considerations

#### Technical Risks

**Bridge Failure**: Dependency on Bitcoin mainnet for state synchronization **Quantum Timeline**: Risk of quantum computers arriving before full migration **Implementation Bugs**: Smart contract and cryptographic implementation vulnerabilities

#### Economic Risks

**Adoption Risk**: Network effects depend on user migration from Bitcoin mainnet **Liquidity Risk**: Initial low liquidity during migration period **Regulatory Risk**: Potential regulatory treatment differences from Bitcoin

#### Mitigation Strategies

**Gradual Migration**: Phased rollout allowing for testing and refinement **Insurance Mechanisms**: Community-funded insurance for bridge failures **Regulatory Engagement**: Proactive engagement with regulatory bodies

### Conclusion

Quantum AI Bitcoin represents the natural evolution of Bitcoin for the quantum era. By preserving Bitcoin's monetary properties, economic history, and network effects while upgrading its cryptographic foundation, qBTC ensures that Bitcoin's revolution in digital money survives the transition to quantum computing.

Rather than replacing Bitcoin, Quantum AI Bitcoin extends its lifespan indefinitely, providing a quantum-secure haven for the world's premier cryptocurrency. As quantum computers approach cryptographic relevance, qBTC offers Bitcoin holders a seamless path to quantum safety without sacrificing the properties that make Bitcoin valuable.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://esper.gitbook.io/esperchain-docs/miscellaneous/quantum-ai-bitcoin-qbtc.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
