Learn About Bitcoin℠ > Context & Reference
Bitcoin Security: AI Risk & Quantum Risk
Last updated: December 3, 2026
An independent technical overview of the cryptographic foundations of the Bitcoin Network, the nature of quantum computing and AI risks to those foundations, and the current state of migration proposals.
Before We Get Started
There is no known immediate threat to the Bitcoin Network from quantum computing or artificial intelligence. The protocol has operated continuously since 2009 under open scrutiny. Its design as free and open-source software means the rules can be extended through consensus when a change is justified and broadly supported.
The core security properties of the network — proof-of-work, the blockchain as a public ledger, and the ability to verify transactions independently — have not been broken. Losses that have occurred have almost always involved third-party services, user error, or implementations outside the protocol itself. Research into post-quantum signature schemes and related upgrades is already underway in the broader cryptographic community and within Bitcoin development discussions. Any future change would follow the same soft-fork process used for prior improvements.
The sections below describe the current cryptographic foundations, the nature of the longer-term risks under discussion, and the migration approaches that have been proposed.
Current Cryptographic Stack
Bitcoin’s security rests on well-studied cryptographic primitives. No practical classical attack is known against any of them at the parameters used.
- Signatures: ECDSA and Schnorr signatures over the secp256k1 elliptic curve (BIP-340 for Schnorr). Security relies on the elliptic curve discrete logarithm problem.
- Hashing: SHA-256 (proof-of-work, Merkle trees, address construction) and RIPEMD-160 (legacy address hashing).
- Address types: P2PK, P2PKH, P2SH, P2WPKH, P2WSH, and P2TR (Taproot). Most modern types hash the public key until spend, delaying public-key exposure.
- Consensus: Proof-of-work with SHA-256 and the longest-chain rule.
Private keys remain under user or custodian control. The network itself does not store private keys.
Bitcoin Address Types
Bitcoin has evolved several address formats. Each has different properties for public-key exposure, script flexibility, fee efficiency, and quantum exposure. Quantum risk is highest when a public key is already visible on-chain.
- P2PK (Pay-to-Public-Key) — Introduced with the genesis block in 2009. The raw public key is placed directly in the output. This was the original format. It is the least private and highest quantum risk because the public key is exposed immediately upon receipt. Rarely used after the early years.
- P2PKH (Pay-to-Public-Key-Hash) — Also from 2009–2010 (standard addresses starting with “1”). The public key is hashed (RIPEMD-160 of SHA-256) before being placed on-chain. The public key is only revealed when the coins are spent. This provides a temporary protection window against quantum attacks until the UTXO is spent. Still widely used but less efficient than later formats.
- P2SH (Pay-to-Script-Hash) — Activated via BIP-16 in 2012 (addresses starting with “3”). Allows complex spending conditions (multisig, timelocks, etc.) by hashing the redeem script. Public keys are revealed only on spend. More flexible than P2PKH. Nested SegWit (P2SH-P2WPKH) uses this wrapper for compatibility.
- P2WPKH (Pay-to-Witness-Public-Key-Hash) — Native SegWit, activated in 2017 via BIP-141/BIP-173 (Bech32 addresses starting with “bc1q”). Moves the signature data to the witness. Public key is revealed only on spend. Lower fees, better malleability resistance, and the same quantum protection window as P2PKH until spent. Currently one of the most common and recommended formats.
- P2WSH (Pay-to-Witness-Script-Hash) — Native SegWit for scripts, also 2017 (Bech32 “bc1q”). Similar benefits to P2WPKH but for complex scripts. Public keys revealed on spend.
- P2TR (Pay-to-Taproot) — Activated in November 2021 via BIP-341/BIP-342 (Bech32m addresses starting with “bc1p”). Introduces Schnorr signatures and key-path spending. Highly innovative for privacy and efficiency (simple spends look identical). However, the public key is typically visible in the output itself under the key-path design, reducing the quantum protection window compared with hashed formats. Script-path spends can still hide keys until used.
From a quantum perspective, formats that hash the public key (P2PKH, P2WPKH, and most script-based types until spent) offer a temporary advantage. P2PK and key-path P2TR expose the public key earlier. All current types ultimately rely on ECDSA or Schnorr and will require migration if a cryptographically relevant quantum computer arrives. Modern wallets default to native SegWit or Taproot.
Quantum Computing Risk
A sufficiently large, fault-tolerant quantum computer running Shor’s algorithm can solve the elliptic curve discrete logarithm problem in polynomial time. This would allow derivation of a private key from an exposed public key.
Grover’s algorithm offers only a quadratic speedup against hash functions. SHA-256 retains substantial security margin under current estimates; the primary concern is signatures, not mining or the blockchain structure itself.
Current status (as of late 2026): No publicly known quantum computer can break secp256k1. Resource estimates for a practical attack have declined (recent work cites on the order of 1,200–1,500 logical qubits, corresponding to hundreds of thousands of physical qubits under certain error-correction assumptions), but a large engineering gap remains between demonstrated hardware and these requirements.
Probability estimates vary widely. Expert surveys and Monte-Carlo models generally place the chance of a cryptographically relevant quantum computer in the low-to-mid tens of percent by the mid-to-late 2030s, with substantial uncertainty. Near-term (before 2030) probability is assessed as low by most published analyses.
Coins whose public keys have already been revealed on-chain (estimated in the range of 6–7 million BTC, including early P2PK outputs and reused addresses) are the most exposed. Unspent outputs that have never revealed a public key retain a temporary protection window.
Multi-signature setups can increase the number of keys that must be compromised and, depending on the script, can delay full public-key exposure until the coins are spent. They do not prevent a quantum computer from deriving private keys once those public keys appear on-chain. An additional BIP-39 passphrase protects the seed derivation against someone who obtains the mnemonic words but does not know the passphrase; it does not stop recovery of a private key from an already-exposed public key.
AI and Frontier Models
Current AI systems do not break the underlying mathematical hardness of ECDSA or SHA-256. They can assist with code review, side-channel analysis research, social engineering, and the generation of phishing or malware campaigns. These are operational and human risks, not cryptographic breaks.
AI-assisted optimization of quantum circuits has appeared in research challenges, but this does not change the fundamental hardware requirements for a fault-tolerant attack.
Cryptographic Schemes and Global Infrastructure
The quantum risk under discussion is not unique to Bitcoin. Most widely deployed public-key cryptography relies on problems that Shor’s algorithm can solve efficiently on a sufficiently large fault-tolerant quantum computer. Organizations, governments, and standards bodies are evaluating or beginning migrations at different speeds, depending on threat models, system complexity, and operational constraints. Bitcoin is one participant in a broader, multi-year transition that also affects internet security, financial networks, and government systems.
| Scheme | Primary Uses | Quantum Vulnerability | Notes |
|---|---|---|---|
| RSA | TLS/HTTPS certificates, email (S/MIME), code signing, VPNs, many banking and government systems | High (Shor’s algorithm) | Longest-deployed public-key system. Large key sizes common. Migration to post-quantum key exchange and signatures is underway in major browser and CA ecosystems. |
| ECDSA / ECDH (P-256, P-384, secp256k1, etc.) | Bitcoin and other blockchains, TLS, code signing, smart cards, some messaging protocols | High (Shor’s algorithm) | Smaller keys and faster operations than RSA. secp256k1 is specific to Bitcoin. P-256 is widely used in internet protocols. All rely on the elliptic curve discrete logarithm problem. |
| Diffie-Hellman (classical and elliptic curve) | Key exchange in TLS, SSH, VPNs, secure messaging | High (Shor’s algorithm) | Used to establish shared secrets. Often paired with signatures. Post-quantum key encapsulation mechanisms (e.g., ML-KEM) are the planned replacements. |
| DSA | Older digital signatures (SSH, some legacy systems) | High (Shor’s algorithm) | Largely superseded by ECDSA and RSA in modern deployments. Still present in some long-lived systems. |
| SHA-256 / SHA-3 (hash functions) | Bitcoin proof-of-work and Merkle trees, TLS integrity, password hashing, digital signatures (as a component) | Low (Grover’s algorithm provides only quadratic speedup) | Not broken by known quantum algorithms in the same way as public-key schemes. Larger output sizes or increased iteration counts can restore margin if needed. |
| NIST post-quantum standards (ML-KEM, ML-DSA, SLH-DSA) | Planned replacements for key exchange and signatures across TLS, government systems, and other high-assurance environments | Designed to resist known quantum attacks | Standardized in 2024. Larger keys and signatures than current elliptic-curve schemes. Adoption timelines vary by sector. Hybrid modes (classical + post-quantum) are common during transition. |
Migration status differs by sector. Internet certificate authorities and major browsers have published post-quantum roadmaps. Financial and government systems face longer operational cycles. Bitcoin’s upgrade path, if pursued, would be a soft fork requiring broad node and wallet coordination, similar in process to prior consensus changes.
Largest Practical Risks
| Risk | Relative Probability (near term) | Notes |
|---|---|---|
| User error / lost keys / poor backup | High | Historically the dominant source of loss. |
| Custodial failure / exchange insolvency | High | Counterparty risk, not protocol risk. |
| Phishing / social engineering / malware | High | AI can increase scale and sophistication. |
| Implementation bugs in wallets or nodes | Medium | Mitigated by open review and testing. |
| 51% economic attack | Low–Medium | Costly; does not break cryptography. |
| Cryptographic break (classical) | Very Low | No practical attack known on secp256k1 or SHA-256 at current parameters. |
| Quantum attack on exposed keys | Low (near term); rising over decades | Requires large fault-tolerant machine. Migration path exists. |
Path Forward
NIST standardized post-quantum signature schemes (ML-DSA / FIPS 204 and SLH-DSA / FIPS 205) in 2024. These produce larger signatures than ECDSA or Schnorr, creating practical constraints for on-chain use.
Bitcoin proposals under discussion (as of late 2026) include:
- BIP-360 (draft): Pay-to-Merkle-Root (P2MR), an output type that avoids immediate public-key exposure.
- BIP-361 (draft): Phased sunset of legacy ECDSA/Schnorr signatures after a post-quantum output type exists, with multi-year migration windows.
- Hash-based schemes such as SHRINCS, designed with Bitcoin’s block-size constraints in mind.
Any upgrade requires broad consensus and would be implemented as a soft fork. The protocol’s design allows new signature schemes to be added without altering the fixed supply schedule or the fundamental security model of proof-of-work.
The dominant near-term risks remain operational and human. Cryptographic migration is a known engineering and coordination problem with established research paths, not an imminent break.
Helpful Concepts and Best Practices
These practices reduce exposure to the most common sources of loss. They do not change the underlying cryptographic risk of exposed public keys.
- Avoid address reuse. Generate a new address for each incoming payment. Reusing addresses reveals the public key earlier and links transactions on-chain.
- Replace older or discontinued hardware. Devices without secure elements or with limited entropy sources should be retired. Move funds to current hardware that meets manufacturer recommendations.
- Move coins from previously spent addresses. Once an address has been used to send funds, its public key is exposed. Transfer remaining balances to a fresh address that has never been spent from.
- Buy hardware wallets directly from the manufacturer. Third-party resellers increase the risk of tampered devices.
- If using an exchange, review its controls. Confirm account details are complete, enable two-factor authentication, and examine any available features such as withdrawal delays, vaults, or secondary verification.
- Practice recovery before relying on it. Verify that firmware is current, that the device functions as expected, and that the seed phrase or recovery backup is correctly recorded and stored offline.
- Follow primary sources for updates. Manufacturer sites, official channels from Bitcoin software projects, and researchers working on the protocol provide the most direct information. General media and unrelated commentary are less reliable for technical details.
- Keep devices and networks current. Apply official firmware and software updates to phones, computers, routers, and related applications.
- Isolate Bitcoin activity where practical. A dedicated device or separate user account reduces the chance that unrelated software or accounts affect key management.
- Use a dedicated email for wallet and exchange accounts. Keeping these separate from everyday correspondence limits the impact of a compromised personal inbox. Enable two-factor authentication on the email account as well.
- Disable SIM swaps with your mobile carrier. Request that the provider block unauthorized SIM changes or require additional verification before number transfers.
Coordination and Incentives
The Bitcoin Network’s response to longer-term cryptographic risk depends on the same incentive and coordination mechanisms that have supported prior upgrades. Miners have economic reasons to maintain compatible software and protect the value of their operations. Full-node operators and wallet developers can adopt new rules once a soft fork is activated and widely signaled. Exchanges and custodians can adjust front-end controls, deposit and withdrawal policies, or confirmation requirements while the majority of their holdings remain in cold storage. The difficulty adjustment provides a built-in mechanism that responds to changes in total hash rate, whether from price movements or temporary operational disruptions.
Research into post-quantum signatures and related protocol changes has been ongoing for years within the broader cryptographic community and among Bitcoin developers. Any migration would follow the established soft-fork process used for previous improvements. User security continues to depend primarily on sound key management practices, as it has since the network’s earliest years. Losses that have occurred have involved third-party services, implementation errors, or user mistakes rather than a break in the protocol itself.
Public discussion of quantum risk sometimes includes commentary from sources outside Bitcoin protocol development. Assessments from researchers and engineers working on the relevant cryptographic standards and Bitcoin software provide the most direct technical context.
Up Next: Bitcoin Risk
Bitcoin Risk →Go back to Education Portal:
← Learn About Bitcoin℠Share the link with colleagues, family, and friends.
Fresh start? Official Bitcoin Network homepage.
This page is an independent educational reference. It is not a prediction of timelines, investment advice, or a substitute for primary research. Quantum and cryptographic assessments continue to evolve.
Contact Us: Confidential Inquiries
For inquiries regarding premium advertising, exclusive partnership, licensing agreements, or acquisition, use the contact form on the homepage.
Disclaimer
The site is educational. It is not an investment advisory service and does not offer financial products, custody, consulting, or any other professional services. Content is provided for information and reference only and must not be construed as investment, legal, tax, accounting, or any other form of advice. By accessing or using this website you acknowledge that it is your sole responsibility to evaluate the accuracy, completeness, and usefulness of the information presented, and that BitcoinNetwork.com assumes no liability whatsoever for any loss, damage, claim, or legal consequence arising from its use.
By accessing this website you agree to the User Agreement, Privacy Policy, and Legal Notice.