Elliptic-curve keys
Terms used in this lesson
- Taproot
- A Bitcoin output and spending design that can combine a public-key path with privately committed alternative scripts.
- BIP340
- The Bitcoin Improvement Proposal specifying Schnorr signatures for the secp256k1 curve.
A private key is a secret number. Bitcoin multiplies it by a fixed curve point to create a public key, a one-way operation used to authorize spending.
Loading lesson visuals...
Learn the idea
A Bitcoin private key is a nonzero integer in the secp256k1 group's allowed range. A public key is the elliptic-curve point obtained by multiplying the curve's generator point G by that private scalar. Scalar multiplication is easy to compute forward, while recovering the scalar from the public point is believed infeasible.
Sample a private scalar
A wallet uses a cryptographically secure random source or deterministic derivation to choose a valid scalar. Predictable values are unsafe.
Inspect every idea above to open it.
An address encodes a spending condition. A public key may be part of that condition, while the private scalar remains separate and is not recoverable by decoding the address.
The questions unlock after every required learning activity
Inspect every guided idea, open the worked example, rebuild its mechanism, and complete the deterministic lesson tool. Your progress is saved automatically.