---
title: "Elliptic Curve Cryptography (ECC) — definition | Nuri Glossary"
description: "The maths behind compact public keys and signatures, giving Bitcoin its key sizes."
lang: "en"
type: "glossary-term"
canonical: "https://nuri.com/glossary/elliptic-curve-cryptography"
---

# Elliptic Curve Cryptography (ECC)

The maths behind compact public keys and signatures, giving Bitcoin its key sizes.

## Basically

Elliptic curve cryptography creates the keys your wallet uses to prove you own bitcoin. It keeps those keys small and never reveals your secret key.

## Key Takeaways

- Elliptic curve cryptography uses points on a curve to create a trapdoor function. Multiplying a private key by a generator point is fast, but reversing that operation to recover the private key from the public key is computationally infeasible.
- Bitcoin uses the secp256k1 curve for its computational efficiency and transparent, verifiably non-random parameters. These parameters avoid the backdoor concerns associated with NIST-recommended curves.
- A 256-bit ECC key provides roughly the same security as a 3,072-bit RSA key. ECC therefore needs far less storage, bandwidth and verification work, which benefits blockchain systems where thousands of nodes replicate every byte.

## What Is Elliptic Curve Cryptography?

Elliptic curve cryptography (ECC) is public-key cryptography based on the algebraic structure of elliptic curves over finite fields. Bitcoin uses it to generate a private key and its corresponding public key. It also creates digital signatures that prove ownership without revealing the private key.
An elliptic curve here is the set of points (x, y) that satisfy y² = x³ + ax + b over a finite field. The field uses modular arithmetic with a large prime number. The name comes from the curves' historical link to calculating the arc length of an ellipse, not from ellipses themselves.
ECC provides the same cryptographic security as older systems such as RSA with much smaller keys. Smaller keys suit resource-constrained environments. They also suit Bitcoin, where transaction size directly affects fees and network throughput.

## How It Works

ECC uses scalar multiplication of points on the curve. You start with a known generator point G and "multiply" it by any integer k to produce a new point Q on the curve. This operation underpins all of Bitcoin's cryptography.

## The Trapdoor Function

ECC security rests on the Elliptic Curve Discrete Logarithm Problem (ECDLP). Given two points G and Q on the curve, where Q = k × G, finding k is computationally infeasible when k is sufficiently large. This is the trapdoor: easy to compute in one direction and practically impossible to reverse.
Point multiplication explains why. Adding two points produces a third point: draw a line through the first two, find where it intersects the curve, then reflect across the x-axis. Doubling a point uses the tangent line at that point, and scalar multiplication chains these operations with a "double-and-add" algorithm in roughly log₂(k) steps.
The result appears random, with no shortcut to determine k from Q without trying a prohibitive number of possibilities. Bitcoin's 256-bit keys have a search space of approximately 10⁷⁷ possible values. That is far more than the estimated roughly 10⁸⁰ atoms in the observable universe.

## Key Pair Generation in Bitcoin

Bitcoin generates key pairs with the secp256k1 curve. The process is straightforward:

## Digital Signatures: ECDSA and Schnorr

Bitcoin uses two ECC-based signature schemes. The original Elliptic Curve Digital Signature Algorithm (ECDSA) has been used since Bitcoin's launch. The Taproot upgrade activated Schnorr signatures (BIP 340) as an alternative in November 2021.
Both schemes prove that the holder of a private key authorised a transaction without revealing the key itself. The signer produces a signature from the private key and the transaction hash. Anyone with the corresponding public key can verify that the signature is valid.
Schnorr signatures offer linearity, which ECDSA lacks. Multiple signers can combine their public keys and signatures into a single key-signature pair that is indistinguishable from a regular single-signer transaction, enabling efficient threshold-signature protocols such as FROST and MuSig2. The Taproot and Schnorr signatures deep dive and the FROST threshold signatures explainer cover these topics in more depth.

## Why Bitcoin Chose secp256k1

Satoshi Nakamoto selected secp256k1 from the Standards for Efficient Cryptography (SEC) specification, although many elliptic curves exist. Most systems at the time used the NIST-recommended P-256 curve (secp256r1), so this was an unusual choice. Several properties make secp256k1 well suited to Bitcoin:

## ECC Key Sizes vs. RSA

ECC offers a major advantage in key efficiency. The following table shows the key sizes needed for equivalent security levels, based on NIST guidelines:
Bitcoin's 256-bit secp256k1 keys provide approximately 128-bit security, equivalent to a 3,072-bit RSA key. A compressed Bitcoin public key is 33 bytes, while an equivalent RSA public key is 384 bytes. Thousands of nodes worldwide store and verify every transaction, so this 12:1 size advantage directly reduces fees, verification time and storage overhead.

## Bitcoin Transaction Signing

Every Bitcoin transaction requires at least one ECC-based digital signature to authorise spending. Your wallet uses the private key to sign the transaction hash with ECDSA or Schnorr when you send bitcoin. Network nodes verify the signature against your public key, derived from the Bitcoin address, before accepting the transaction into the mempool.

## Hierarchical Deterministic Wallets

HD wallets (BIP 32) use ECC's mathematical properties to derive entire trees of key pairs from a single seed phrase. The linearity of elliptic curve operations lets parent public keys derive child public keys without knowing the private keys. This enables watch-only wallets and secure key management architectures.

## Multi-Signature and Threshold Schemes

ECC enables multisig wallets where multiple keys must authorise a transaction. Schnorr-based protocols such as FROST enable threshold signing, so any 3 of 5 keyholders can produce a single valid signature with no on-chain footprint distinguishing it from a regular payment. Spark uses FROST threshold signatures as a core part of its Layer 2 architecture.

## Lightning Network

The Lightning Network relies on ECC at every layer. Channel funding transactions, commitment transaction signing and HTLC resolution all require ECC-based signatures. Onion routing for payment privacy also uses elliptic curve Diffie-Hellman key exchange to encrypt routing information at each hop.

## Quantum Computing Threat

Quantum computing is the most significant long-term risk to ECC. Shor's algorithm, published in 1994, can solve the elliptic curve discrete logarithm problem in polynomial time on a sufficiently powerful quantum computer. That would effectively break the trapdoor function securing all ECC-based systems.
ECC is more vulnerable to quantum attacks than RSA at equivalent classical security levels. Breaking 256-bit ECC requires fewer quantum resources than breaking 3,072-bit RSA, so quantum computers may be able to crack secp256k1 before they can factor large RSA keys. Recent research has steadily reduced estimated requirements from millions of physical qubits in 2017 to under 500,000 in a 2026 estimate by Google Quantum AI researchers, while current hardware such as Google's Willow chip at 105 qubits remains far below these thresholds, though the trajectory warrants attention.
The research article on post-quantum cryptography and the Bitcoin threat provides a comprehensive analysis. The glossary entry on Shor's algorithm vulnerability covers the specific weakness.

## Post-Quantum Alternatives

NIST finalised three post-quantum cryptography standards in August 2024: ML-KEM (CRYSTALS-Kyber) for key encapsulation, ML-DSA (CRYSTALS-Dilithium) for digital signatures and SLH-DSA (SPHINCS+) as a hash-based signature backup. The Bitcoin community is actively researching how to integrate post-quantum signatures. Proposals such as BIP-360 define new quantum-resistant address types.
Post-quantum signatures are dramatically larger than ECC equivalents, which creates a size challenge. CRYSTALS-Dilithium signatures are approximately 2,420 bytes compared with 64 bytes for Schnorr, and hash-based schemes such as SPHINCS+ can exceed 7,000 bytes. Fitting these signatures into Bitcoin's block size constraints while preserving decentralisation remains an open research problem.

## Implementation Risks

ECC is mathematically sound, but implementation errors can be catastrophic. Nonce reuse in ECDSA is the most critical risk: if the random value (k) used during signing is ever repeated, the private key can be derived from the two signatures. Modern wallets use deterministic nonces (RFC 6979), derived from the private key and message hash rather than generated randomly, to mitigate this risk.
Other implementation concerns include side-channel attacks, such as timing or power analysis revealing key material, insufficient randomness during key generation and incorrect curve parameter validation. Hardware security modules (HSMs) and secure elements help mitigate these risks in production environments.
The glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.
Part of the [Nuri glossary](https://nuri.com/glossary), which defines 1876 Bitcoin, Lightning, wallet, stablecoin and payment terms.
