
A Coldcard firmware flaw led to $116M in bitcoin losses from weak private keys. Understand how public key cryptography works and what it means for wallet security.
In July 2026, researchers found that Coldcard hardware wallets had been generating weak private keys for five years. A build flag in the firmware told the device to skip its dedicated hardware randomness chip. The result was predictable entropy. An attacker reverse-engineered the weakness and began draining wallets on July 30, taking about $116 million in bitcoin before the vulnerability became public.
The incident illustrates a fundamental lesson about public key cryptography. The security of a key pair depends on the randomness used to generate the private key. A 256-bit key is theoretically unbreakable, but a flawed random number generator makes it worthless.
Every cryptocurrency wallet uses a key pair: one private key and one public key. The private key is a random 256-bit number. The public key is derived from it using elliptic curve multiplication on the secp256k1 curve. This is a one-way function. Computing the public key from the private key takes a fraction of a second. Reversing the process requires solving the elliptic curve discrete logarithm problem, which has no known efficient solution.
Wallet addresses are not public keys. They are derived from public keys through hashing. In Bitcoin, SHA-256 and RIPEMD-160 produce a 160-bit hash, encoded as a Base58 string. In Ethereum, Keccak-256 is used, and the last 20 bytes become the address. The hashing adds a layer of protection: an address that has never sent a transaction has never exposed its public key on-chain, offering theoretical resistance against future quantum attacks.
The Coldcard flaw meant the device used predictable entropy. An attacker who understood the weakness could compute the private keys. This is not the first such incident. In 2013, Android's SecureRandom bug caused multiple Bitcoin wallets to generate duplicate random numbers. Attackers computed private keys from transaction signatures. In 2022, the Profanity vanity address generator used a 32-bit seed, reducing the keyspace to about 4 billion possibilities that could be brute-forced in minutes.
For traders holding significant crypto in self-custody, the quality of the hardware wallet's random number generator matters. Reputable devices use dedicated true random number generators and allow users to add entropy manually, for example with coin flips or dice rolls. The Coldcard incident shows that even established hardware can have silent flaws. Users should verify their wallet's firmware version and check if the manufacturer has disclosed any entropy-related issues.
The attacker drained wallets over several days before the disclosure. No further incidents have been reported since the fix was deployed. The incident reinforces that public key cryptography is secure only when the private key generation is sound. A weak random number generator undermines the entire system.
For a broader look at crypto market risks, see crypto market analysis. For Bitcoin-specific data, see the Bitcoin (BTC) profile.
Prepared with AlphaScala editorial tooling from the source reporting linked above. Indexable analysis may include a cited Alpha Score value. Publishing checks screen each story before release. Educational coverage, not personalized advice.