Generating Public Keys on secp256k1 Curve

Loading...

Loading video...

Pro
0:00 / 0:00

Animation Specification: secp256k1 Public Key Generation

Animation Description and Purpose

This animation visually demonstrates how a public key is generated on the secp256k1 elliptic curve using a private key. The goal is to illustrate the core concept of elliptic curve cryptography: scalar multiplication of a generator point by a private key to produce a public key.

Mathematical Elements and Formulas

  • Elliptic Curve Equation: y2=x3+7y^2 = x^3 + 7 over the finite field Fp\mathbb{F}_p, where p=2256232977p = 2^{256} - 2^{32} - 977.
  • Public Key Generation Formula: Q=dGQ = d \cdot G, where:
    • QQ is the public key (a point on the curve).
    • dd is the private key (a scalar).
    • GG is the generator point (a fixed point on the curve).
  • Scalar Multiplication: Repeated point addition on the elliptic curve.

Visual Elements

Shapes and Objects

  1. Elliptic Curve: A 2D representation of the secp256k1 curve, simplified for visualization.
  2. Generator Point GG: A distinct point on the curve, highlighted in green.
  3. Private Key dd: Displayed as a small integer (e.g., d=3d = 3) for simplicity, with an opaque background.
  4. Public Key QQ: The resulting point after scalar multiplication, highlighted in blue.
  5. Point Addition Lines: Dashed lines connecting points during scalar multiplication.
  6. Tangent Lines: For visualizing point doubling (part of scalar multiplication).

Colors

  • Curve: Light gray.
  • Generator Point GG: Green.
  • Private Key dd: White text with a dark gray opaque background.
  • Public Key QQ: Blue.
  • Point Addition Lines: Light blue dashed lines.
  • Tangent Lines: Orange dashed lines.

Animation Sequence

  1. Introduction (0s - 3s):

    • Display the elliptic curve y2=x3+7y^2 = x^3 + 7 with the title "secp256k1 Public Key Generation".
    • Highlight the generator point GG on the curve.
    • Show the private key d=3d = 3 appearing near the bottom of the screen.
  2. Scalar Multiplication (3s - 10s):

    • Animate the process of Q=dGQ = d \cdot G as repeated point addition:
      • Start with GG and show G+G=2GG + G = 2G (point doubling).
      • Add GG again to show 2G+G=3G2G + G = 3G.
    • Use dashed lines to connect points during addition.
    • Highlight the tangent line for point doubling.
  3. Result (10s - 12s):

    • The final point Q=3GQ = 3G is highlighted in blue.
    • Display the text "Public Key QQ

Created By

tiantao zhutiantao zhu

Description

This animation illustrates how a public key is generated on the secp256k1 elliptic curve using scalar multiplication of a generator point by a private key. It visually demonstrates the process of repeated point addition and doubling to compute the public key.

Created At

Jan 16, 2026, 04:19 PM

Tags

elliptic-curve-cryptographypublic-key-generationscalar-multiplication

Status

Completed
AI Model
DevStral 2512