Passer au contenu

Bitcoin accepté au paiement  |  Expédié depuis Laval, QC, Canada  |  Soutien expert depuis 2016

Discrete Logarithm Problem

Network & Protocol

Definition

The discrete logarithm problem (DLP) is the mathematical hardness assumption that secures every Bitcoin key. In its elliptic-curve form (ECDLP), the challenge is: given the generator point G and a public point Q = kG, recover the scalar k. Computing Q from k via point multiplication is fast — a wallet does it in microseconds — but going backward is believed to be computationally infeasible for properly chosen curves. That one-way gap is the entire reason you can safely publish a public key while keeping the matching private key secret.

Where the name comes from

In ordinary arithmetic, if you know g and g^x, taking a logarithm recovers x easily. The "discrete" version asks the same question inside a finite group, where numbers wrap around and the smooth structure that makes logarithms easy disappears. The classic setting is multiplication modulo a large prime; Bitcoin uses the elliptic-curve setting, where the group elements are points on a curve over a finite field and the operation is point addition. Same question, different group — and the elliptic-curve version has resisted attack more efficiently per bit of key size, which is why a 256-bit curve key delivers security that would require a several-thousand-bit key in the modular setting.

Why it is hard

The points of the curve form a group with no useful ordering or shortcut structure: knowing kG tells you nothing usable about whether k is large or small, so an attacker cannot binary-search or interpolate toward the answer. The best known general attacks — baby-step giant-step and Pollard's rho — run in roughly the square root of the group order. For secp256k1, whose order is about 2256, that means on the order of 2128 group operations. To put that in mining terms: the global Bitcoin network, the largest concentration of special-purpose compute humanity has built, performs on the order of 290–295 hashes per year — and it would need billions of years of that output, retargeted at a different problem, to approach 2128 work. Brute force is not a rounding error away from feasible; it is not on the map.

What rests on it

Every signature scheme Bitcoin uses — ECDSA historically, and the Schnorr signatures introduced with Taproot — is a proof of knowledge of a discrete logarithm. Address derivation in a hardware wallet, key aggregation in multisig protocols, the blinding in privacy techniques: all inherit their security from the same assumption. It also clarifies real-world key hygiene. The hardness protects a key used correctly; it does not rescue a key leaked by a bad random-number generator, a reused signature nonce, or malware on the signing device. Attackers do not solve the DLP — they go around it.

The quantum caveat

The problem is hard only for classical computers. A sufficiently large fault-tolerant quantum computer running Shor's algorithm could solve ECDLP efficiently, which is the threat behind discussions of post-quantum signature upgrades for Bitcoin. No such machine exists today, the engineering gap remains enormous, and the timeline is genuinely uncertain — but it is the one known crack in the foundation, and the reason the protocol's long-term roadmap keeps a lane open for new cryptography.

There is a satisfying symmetry in how Bitcoin uses hard problems. Mining rests on hash preimage difficulty — finding an input whose hash meets a target — which is expensive but tractable by brute force at planetary scale, and the protocol prices it accordingly through difficulty adjustment. Key security rests on the discrete logarithm, which is not tractable at any scale humanity can build. One problem is a metered toll; the other is a wall. The entire economic design lives in that gap: anyone can spend energy to write history, but no amount of energy lets anyone forge a signature they do not hold the key for.

In Simple Terms

The discrete logarithm problem (DLP) is the mathematical hardness assumption that secures every Bitcoin key. In its elliptic-curve form (ECDLP), the challenge is: given the…

Explore the Full Glossary

Browse all Bitcoin mining terms from A to Z. Whether you are a beginner or expert, deepen your understanding of the mining ecosystem.

Glossaire du minage

ASIC Miner Database

Compare 500+ miners with real-time profitability data, home mining scores, and detailed specs.

Comparer les mineurs