Reviewed Aug 2026
DE
BA-02 · LESSON 04

Elliptic-curve keys

KEY DEFINITIONS

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.

65 min Difficulty 1/5 Not started

Loading lesson visuals...

01

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.

GUIDED EXPLANATION1/7 ideas inspected
1

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 each idea before the worked example.
The worked example follows the explanation

Inspect every idea above to open it.

Important distinctionA Bitcoin address is the public key and the private key is stored inside it in encrypted form.

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.

02
FINISH LEARNING FIRST

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.