Is bc1q (SegWit) quantum safe?
Mostly yes, with one condition that matters more than the address format: it must never have spent. A native SegWit address writes a hash into the chain, not a public key, and a hash gives Shor's algorithm nothing to work on. The protection ends the moment the address spends and someone sends coins to it again, and it never covered the few minutes a spend sits in the mempool. Here is what a bc1q address commits to, how it stops being safe, and what our scanner cannot see.
The short version. A bc1q address of 42 characters is a 20-byte hash of one public key (P2WPKH); one of 62 characters is a 32-byte hash of a script (P2WSH), often a multisig. Until the address spends, the chain holds only that hash, so the coins are protected against a long exposure attack, the kind that works on keys already public. The first spend puts the key, or the script and every key in it, into the witness for good. Anything left on the address, or sent to it afterwards, sits behind a public key. A spend in flight is open to a short exposure attack whatever the address type. And BIP-361, a draft, would eventually restrict all ECDSA and Schnorr spends, never-spent bc1q included.
What a bc1q address commits to
Native SegWit was defined in BIP-141. A SegWit output is a version byte followed by a “witness program”, and for version 0 the length of the program decides what it means:
- 20 bytes: P2WPKH. The program is the HASH160 of a compressed public key, the same SHA-256 then RIPEMD-160 construction that legacy
1…addresses use. The address is 42 characters long. - 32 bytes: P2WSH. The program is the SHA-256 of a script, the
witnessScript. The address is 62 characters long. Multisig wallets, many vaults and the funding outputs of classic Lightning channels use this type.
The address encoding is BIP-173 (Bech32). The q after bc1 is simply the witness version, 0, written in the Bech32 alphabet, and BIP-173 states that version 0 addresses are always 42 or 62 characters. Taproot is version 1, hence bc1p, encoded with the Bech32m variant of BIP-350.
There is also wrapped, or nested, SegWit: a P2WPKH program placed inside a P2SH script, which gives an address starting with 3. For quantum purposes it behaves like native P2WPKH: a hash at rest, the key revealed on the first spend.
Why a hash stops Shor's algorithm
Shor's algorithm solves the elliptic curve discrete logarithm: given a public key, a point on the secp256k1 curve, it recovers the private key. It needs that point as input. A 20-byte or 32-byte hash is not a point, has no algebraic structure for Shor to exploit, and cannot be turned back into the key.
The quantum tool that does apply to hashes is Grover's algorithm, and its effect is much milder. We went through the numbers in Grover vs Shor: a square-root speed-up on a search that must run sequentially, with each step also deriving a key, which leaves finding a private key behind a 160-bit hash far out of practical reach. That is why the protocol's own documents treat hashed outputs as safe at rest. The current text of BIP-360 lists P2WPKH and P2WSH as not vulnerable to long exposure attacks, with an asterisk: they “can become vulnerable” whenever their script reveals a public key.
That asterisk is the whole article. A bc1q address is not quantum safe because of SegWit. It is safe at rest because, and for as long as, it shows a hash.
What the first spend reveals
To spend a P2WPKH output, the witness must contain exactly two items: a signature and the public key. From then on the key is in the block, permanently, for anyone to read.
For P2WSH, the spender reveals the full witnessScript. If that script is a 2-of-3 multisig, all three public keys become visible, including the two that did not sign.
A revealed key does not matter for an output that has already been spent. It matters for any coins that still sit behind that key, and there are three common ways to end up with some:
- Receiving again on the same address. A deposit address printed on an invoice, a donation address, a mining payout address. Every receipt after the first spend lands on a public key.
- Spending only some of the coins. If the address holds several outputs and you spend one, the others stay behind the same, now public, key.
- Change sent back to the same address. Most modern wallets send change to a fresh address, but not all of them do it in every mode, and some users turn it off.
We covered these in detail in address reuse and quantum exposure. The pattern is common among large balances: in our report on the hundred largest addresses, most of the exposed balance came from reuse of hashed addresses, not from Taproot. A reused bc1q address is, for quantum purposes, no better than a Taproot one.
The spend itself: a short window
Even a perfectly managed bc1q address has to reveal its key once, when it spends. Between broadcast and confirmation, the key sits in the mempool. BIP-360 calls an attack in that window a “short exposure attack” and notes that it needs much faster quantum computers than an attack on keys exposed for years, because the attacker would have to recover the key and get a conflicting transaction mined before the original confirms. We walked through that race in what a quantum attack on bitcoin would look like.
No current output type protects against this, hashed or not. BIP-360 says so about its own proposal: full protection from short exposure attacks may require post-quantum signatures. The practical point for a bc1q holder is that the at-rest protection is real but narrow. It removes the long exposure attack, which is expected to come first, and leaves the short one untouched.
P2WSH and multisig: opaque until spent
A 62-character bc1q address is a commitment to a script, and nobody reading the chain can tell what the script contains until it spends. That has two consequences.
The first is good news for the holder. A multisig that has never spent keeps every one of its keys hidden. Its exposure at rest is the same as a single-key address that has never spent.
The second is a limit for anyone, including us, trying to judge exposure from outside. The script might be an ordinary multisig, a timelocked vault, or the funding output of a Lightning channel. In the last case the keys may already be public through another route: as explained in is Lightning quantum safe?, a public channel announces both funding keys to the whole network through gossip, while the chain still shows only a hash. The ShorWatch scanner does not read gossip, so it marks such an output as protected when its keys are in fact public.
Keys revealed off the chain
An address that has never spent can still have its public key known to someone. The chain is not the only place a key can leak.
- Extended public keys and descriptors. BIP-360 notes explicitly that xpubs and wallet descriptors reveal quantum-vulnerable public key information. An xpub lets anyone who holds it derive every public key in that branch of the wallet. If you have pasted an xpub into a portfolio tracker, a tax tool, a block explorer or a merchant service, that service can compute the keys behind all your
bc1qaddresses, spent or not. - The same key in another format. One public key can produce a legacy
1…address, a wrapped3…address and a nativebc1q…address. If the key has spent from any of them, it is public for all of them.
None of this is visible from the chain, which means the scanner cannot see it either. It judges each address on its own on-chain history. A bc1q address it marks as protected could still have its key known to a service you once shared an xpub with. The article on how to check if an address has been used covers the on-chain part in more detail.
bc1q versus bc1p
Compared with Taproot, a never-spent bc1q address is the safer place for coins at rest. As explained in are Taproot addresses quantum vulnerable?, a bc1p output is the public key itself, so it is exposed from the moment it is funded. A bc1q output is exposed only after it has spent.
That does not make version 0 the better format overall: Taproot is cheaper to spend and more private, and for coins that move often the difference barely matters. For coins meant to sit untouched for years, many people will choose a fresh bc1q address, at least until an output type like the P2MR proposed in BIP-360 exists.
Why BIP-361 still covers bc1q
It is tempting to conclude that a never-spent bc1q address is outside the quantum discussion. The main migration proposal does not treat it that way.
BIP-361, a draft soft fork assigned in February 2026, proposes a sunset of legacy signatures in two phases. In Phase A, 160,000 blocks (about three years) after activation, transactions could only send from legacy scripts to post-quantum ones. In Phase B, two years after Phase A, nodes would restrict ECDSA and Schnorr spends behind a quantum-safe rescue protocol. The restriction applies to signatures, not to address types, so it covers P2WPKH and P2WSH whether they have spent or not. Among the threats the authors say no existing proposal covers, the first they list is short-range attacks, their term for what BIP-360 calls short exposure, and a hashed address does nothing against those.
The rescue protocol the BIP describes relies on BIP-32 hardened derivation: a wallet could prove knowledge of the parent private key, which a quantum attacker who has only derived a child key would not have. The BIP notes that most wallets built since 2012 follow BIP-32, but says it remains to be seen how much of the supply such protocols can cover. The authors write that if rescue protocols cover most of the supply, the restriction would be “at most mildly confiscatory”. BIP-361 is a draft, its post-quantum signature dependency is still marked as to be decided, and it may change or never activate. But a bc1q address is not a reason to ignore it.
What a bc1q holder can do today
None of this is urgent. Nobody knows when, or whether, a machine able to run Shor's algorithm against a 256-bit curve key will exist, and anyone selling a date is guessing. The useful steps are the ordinary ones.
- Treat every address as single-use for storage. When an address spends, move the whole balance and do not receive on it again.
- Check that change goes to a fresh address. Most wallets do this by default. It is worth confirming in yours.
- Think before sharing an xpub. It exposes the public keys of every address in that account, past and future, to whoever holds it.
- Know which of your addresses have spent. That one fact decides whether a
bc1qbalance is on a hash or on a public key. The scanner shows it per address. - Follow the migration proposals calmly. If a post-quantum output type activates, coins will need to move, and a wallet that avoids reuse will find that easiest.
Check whether your bc1q addresses have spent
Paste an address, or an extended public key for a whole wallet, and ShorWatch shows which outputs sit behind a public key that is already on the chain and which are still behind a hash. It runs in your browser against public chain data. Nothing is sent to us and nothing is stored.
Scan an addressRead-only · Non-custodial · Nothing stored · No account needed
Limits. The scanner judges each address by its own on-chain history. It cannot see inside a P2WSH or P2SH script until it spends, so a never-spent multisig is opaque to it; it does not read Lightning gossip, so a public channel's funding output is marked protected although its keys are announced; it cannot know whether a key was revealed off the chain, through an xpub, a signed message or the same key in another address format; and it does not cover pre-2011 P2PK outputs or coins held on an exchange in someone else's addresses. Alerts detect a spend after it happens; they cannot block one. It is an informed first pass, not an audit, and not financial or security advice. SegWit is specified in BIP-141; the legacy signature sunset in BIP-361.