Educational Hub

Elliptic Curve Visualizer (Secp256k1)

Bitcoin uses the Secp256k1 elliptic curve defined by the equation y² = x³ + 7. Visualize its continuous shape and mathematically calculate the coordinates of the Public Key over the finite Prime Field.

1

Geometric Shape over Real Numbers

Representation of y² = x³ + 7. Geometrically, adding a point to itself (P + P) implies drawing a tangent, finding the intersection, and reflecting it on the X-axis to get 2P. Bitcoin does this trillions of times over a finite Prime Field.

2

Scalar Multiplication (Prime Field)

Multiply the Generator Point G by your scalar (Private Key). The algorithm instantly calculates the X, Y coordinates of your Public Key by bouncing across the curve.

X
Waiting for calculation...
Y
Waiting for calculation...

Elliptic curves in Bitcoin: the maths behind your keys

Bitcoin uses the secp256k1 elliptic curve to derive public keys from private keys. The curve is defined by the equation y² = x³ + 7 over a finite field of huge numbers. What matters is not the formula but one property: multiplying a point on the curve by a number is easy, while undoing the operation is infeasible with current technology.

Your private key is a random 256-bit number. The public key is that number multiplied by a fixed point on the curve called the generator point (G). Knowing the public key does not let you work out the private key: this is the so-called discrete logarithm problem.

How to use the lab

First look at the geometric shape of the curve over real numbers and how a point is doubled with the tangent. Then multiply the generator point G by a scalar and observe the coordinates of the resulting public key in the finite field.

Point addition and doubling

Adding two points means drawing the line through them, finding the third point where it meets the curve and reflecting it across the horizontal axis. Doubling a point uses the tangent line. Repeating these operations computes any multiplication.

What it is used for

This maths underpins addresses, digital signatures and the ownership of your funds. To see how it is used to sign, check the digital signatures lab.

Note

The chart over real numbers is only a visual aid: Bitcoin always operates over a finite field, where the curve is a scattered set of points.