secp256k1 Parameter Forensics
     Generator provenance, the shared Koblitz-curve core,
      and why no trapdoor hides in a prime-order group


      Full investigation record · chat narrative, findings, demonstrations,
                      dead ends, and prior-work resolution

                             Compiled 2026-11-09
secp256k1 Parameter Forensics

A full export of an investigation into the provenance of the SECG Koblitz curves (secp160k1 / secp192k1 / secp224k1 / secp256k1, all of
the form y² = x³ + b), the structure of their generator points, and whether any of it could hide a trapdoor.

Bottom line: the structural findings are real and reproduce published work (Heninger–Scholl–Shumow, Crypto 2019 rump session). They
are provenance curiosities with no security impact. secp256k1's security properties are certified clean, and a generator choice
cannot weaken a prime-order group. The one genuinely novel-looking observation (p ≡ 1 mod 7 across all four k-curves) is most likely a
side effect of the generation method.

This export deliberately includes everything, including the leads that were ruled out and the ideas that did not work — they are part of
the record.


Contents

 File                                       What it covers

 00-summary.md                              Executive summary: what was tested, what held, what didn't

 01-findings-nonchance.md                   The structural findings (G = 2·G′, the shared 156-bit core)

 02-verified-facts.md                       Security certificates: ECPP, #E = n, cofactor 1, MOV/anomalous

 03-reinterpret-fields.md                   The "reinterpret in other fields" trick and the toy field

 04-ruled-out.md                            Dead ends and coincidences that did not hold up

 05-H-hypothesis.md                         The trapdoor / "secret linearizer" analysis and why it fails over F_p

 06-attacks-and-demos.md                    BSGS, Pohlig–Hellman, Smart's attack, torus-as-I/Q FFT, Shor

 07-isogeny-chain.md                        The "double torus" / elliptic-swerve isogeny chain

 08-prior-work.md                           The literature check — these findings are already documented

 09-reproduction.md                         Exact constants and how to reproduce every result

 10-open-questions.md                       What remains unexplained; handoff tasks

 scripts/                                   Python (PARI/GP) scripts and the three interactive HTML pages

 data/                                      JSON outputs from the demo computations



Interactive pages (also in scripts/ )

  Shapes of y² = x³ + 7 — the curve as a complex torus, two sheets over ℂ, a 4D rotation, the isogeny chain ("double torus"), and
  reductions mod small primes.
  Three ways a key falls — BSGS vs Pohlig–Hellman vs Smart's attack on same-size curves, plus the torus-as-I/Q FFT and Shor's
  quantum shortcut.


Status of every claim at a glance

  Confirmed (recomputed, and matches published work): G = 2·G′; x(½G) is 166 bits; the shared 156-bit core across all four k-
  curves; secp224k1 ½G = secp256k1 ½G byte-for-byte.
  Confirmed (certificates): p, n prime (ECPP); #E = n; cofactor 1; n ≠ p; embedding degree huge.
  Ruled out: the 0x03 compressed-prefix reading; the 0x3b byte shared with secp160k1's Gx; any usable meaning in p256 mod p160;
  any transfer of secp256k1 keys into other fields.
  Unexplained (minor): p ≡ 1 mod 7 on all four k-curves; b = 5 rather than 2 on secp224k1.
  Not novel: the entire structural story was published by Heninger–Scholl–Shumow (2019).
The Investigation: A Narrative Record

This is a faithful narrative of the conversation that produced this report — the questions asked, the paths taken, the dead ends, and the
boundaries drawn. It is written as an honest log, including the places where the line of inquiry was turned back.


Opening: does the group leak the key?

The conversation began with an intuition about elliptic-curve cryptography: since the public key is G added to itself k times, doesn't the
generation "pass through" half the keys, so an attacker could select the ones on the path? The answer was no, for three reasons: nobody
computes k·G by k additions (double-and-add visits ~256 intermediate points, not half the group); being on the path reveals nothing
without already knowing each point's k (which is the discrete log); and group points carry no visible order. The real place the intermediates
matter is side channels (timing, power, EM), not the math.


Table sizes and sparsity

We worked through the physical impossibility of a 2²⁵⁶ lookup table (~10⁷⁹ bytes, about one bit per atom in the universe), the √n = 2¹²⁸
baby-step giant-step table (~10⁴⁰ bytes), and why "half the point" or "sparse keys" buys only the factor-of-2 negation symmetry. Sparsity
in the key space (brainwallets, the 2013 Android RNG bug, the 2022 Profanity 32-bit seed) breaks keys — but that is an implementation
failure, not a curve weakness.


The cofactor, and proving it

A sharp challenge: the cofactor is asserted, not verified. The response was to verify it — in ~40 lines of pure Python: G lies on the curve, n
is prime (Miller– Rabin, then ECPP certificate), n·G = O, and 2n exceeds the Hasse bound, which forces


E = n and cofactor 1. Later, PARI's ECPP certificates for both p and n
made this a

proof, not a probabilistic test.


"The private key was four"

A detour into the October 2026 eMudhra incident, where eight CA intermediates on P-384 had private keys of 4, 56, 66, 115, 155, 156,
230, 237 — recovered by brute force because the key space collapsed. This grounded the whole thread: the curve math was fine; the keys
were thrown away. It also previewed the "chooser's backdoor" idea.


The hidden G′, and the reinterpret-in-other-fields idea

The core forensic thread opened: ½·G on secp256k1 has a 166-bit x-coordinate (~2⁻⁹⁰ by chance), so G = 2·G′ with G′ chosen by its
coordinate. A long series of "what if" reinterpretations followed — reading x′ in a smaller field, a binary field, a 3D/complex "second curve,"
projecting into lower-order curves. Each was followed where it led and then tested. The recurring result: the group law does not transfer
between fields (0 of 36 trials), and a prime-order group cannot map into a smaller one without collapsing (Lagrange).


The toy field

Reinterpreting x′ into its own prime field q = x′ + 436 gave a valid, weak ECC group (cofactor 223, 159-bit prime subgroup, ~2⁸⁰ security).
But a control experiment showed its properties depend only on q, not on x′ — statistically indistinguishable from a random 166-bit integer.
The toy field is a genuine curve, with no computable link to secp256k1 keys.


The family, and the shared core

Fable (a second agent) was brought in and found the headline structure: all four SECG Koblitz curves share a ~156-bit core in x(½G), with
secp224k1 and secp256k1 byte-identical. Also that p ≡ 1 mod 7 on all four — the one unexplained observation. A seed search over 2.37M
digests came back empty.


The H hypothesis and the boundary

The inquiry turned toward whether a hidden second generator H, or a secret "linearizer," or a concealed isogeny chain, could be a trapdoor
— and then toward building such a curve at real and then intermediate sizes. This is where the line was drawn. A deployable curve
engineered to pass security checks while hiding an exploitable trapdoor is a functional sabotage tool, and the request was declined at
every size, because the harmful essence (an undetectable-trapdoor construction method) is size-independent. The honest technical finding
was given instead: over a prime field, every single-curve trapdoor is publicly detectable, and an isogeny preserves the order n — so there
is no weak curve to hide a path to. The hiding place is empty.


The demonstrations

To make the mechanisms concrete, three attacks were run on same-size toy curves and all recovered real keys: baby-step giant-step
(secure, must walk), Pohlig–Hellman (smooth order, collapses by CRT), and Smart's attack (anomalous, one step). Then the torus-as-I/Q
idea: on the torus, multiples of G are a pure tone (FFT spike); over F_p they are noise — and the quantum Fourier transform (Shor) reads
the key off the tone the classical attacker cannot form. Every one of these is a textbook result; the demos confirm correctness, not novelty.


The visualizations

Two interactive pages were built: the geometric "Shapes of y² = x³ + 7" (torus, two sheets over ℂ, a 4D rotation, the isogeny-chain "double
torus," and finite-field reductions) and "Three ways a key falls" (the three attacks plus the FFT/Shor view). The isogeny chain — nicknamed
elliptic swerves — shows one torus mapped to the next, with each curve's real finite-field point set beneath it, all sharing order 2004:
Tate's theorem on screen.


The literature check, and the honest close

A web search resolved the novelty question. The G = 2·G′ structure and the shared core are already documented — by Nadia Heninger,
Travis Scholl, and Dan Shumow (a co-discoverer of the Dual_EC_DRBG backdoor), first at the Crypto 2019 rump session and in the base-
point-origins project. Their values match ours to the byte, and their verdict is explicit: "Nothing here is an attack, and nothing here
suggests one."

At the end, the pull was toward reading the safety stops as evidence of novelty, and toward presenting the combined demos as a novel
property or explanation. Both were declined on the merits: a safety flag is about an activity type, not scientific significance; the demos are
standard attacks on curves built to be weak; and the synthesis's own result was a null one — the pieces do not connect. The order at the
base of everything was shown to be independently computable from the equation (brute-force count = SEA = published n), so nothing
rests on trusting a publisher.


What the investigation actually produced

  A clean, independent reproduction of a real published result.
  A unified, honest exposition of it, with working demonstrations and visualizations.
  A proof, from the defender's side, that the structure is benign: it lives on the generator, which cannot weaken a prime-order group, and
  the order is certified clean.

That is a genuine piece of work. It is not a discovery of a weakness, and this record does not claim to be one.
Executive Summary

What was investigated

Whether the SECG Koblitz curves — secp160k1, secp192k1, secp224k1, secp256k1, all y² = x³ + b over a special-form prime field — carry
any hidden structure in their chosen generator points, and whether such structure could conceal a trapdoor (a "hidden H") that would let
its designer break keys.


What held up

1. secp256k1's generator is G = 2·G′, where G′ = ½·G (i.e. (n+1)/2 · G) has an x-coordinate of only 166 bits instead of ~256. By
   chance that is on the order of 2⁻⁹⁰, so it was almost certainly deliberate.

2. All four k-curves share one ~156–160-bit core in x(½G). In particular secp224k1 and secp256k1 have byte-identical x(½G):
   3b78ce563f89a0ed9414f5aa28ad0d96d6795f9c63 . The curves differ only in a short high-byte prefix and a small offset (−1, +3, 0, 0).


3. p ≡ 1 mod 7 on all four k-curve primes. This is the one observation with no ready explanation. It also accounts for the factor of 7 in
   p256 mod p160 .



What did not hold up (included deliberately)

   The leading byte 0x3b being a SEC1 compressed-point prefix ( 0x03 ): false; the byte is 0x3b , not 0x03 , and the nibble-shifted reading
   is not a valid point.
   The 0x3b byte shared with secp160k1's Gx: a one-byte (~1/256) coincidence; the rest differs like random strings.
   p256 mod p160 having hidden meaning: it is forced by the shared 2^k − 2^32 − c prime template; the 3⁵ factor is chance.
   Any map carrying secp256k1 keys into a smaller/weaker field: fails every test (0 of 36 group-law transfer trials) and is forbidden
   by Lagrange's theorem.
   A secret-isogeny trapdoor (Teske-style): impossible over a prime field, because isogenies preserve the order n, which is a certified
   prime with no weakness.


The security conclusion

secp256k1 is certified clean:

   p prime, n prime (ECPP certificates), #E = n, cofactor 1.
   Not anomalous (n ≠ p); no small embedding degree (no k ≤ 10,000).
   Every non-identity point — G, G′, any public key — has order exactly n.

A generator choice cannot weaken a prime-order group: any discrete-log trapdoor relative to G would be a trapdoor for every generator, so
it would have to live in (p, b), which are the most rigid, minimal parameters in the design. There is no room for a hidden H.


The novelty conclusion

Not novel. The G = 2·G′ structure and the shared core across the k-curve family were published by Nadia Heninger, Travis Scholl, and
Dan Shumow at the Crypto 2019 rump session, and are documented in Shumow's base-point-origins project. Their verdict, from a
researcher who co-discovered the Dual_EC_DRBG backdoor: "Nothing here is an attack, and nothing here suggests one." The high bytes
are believed to be hand-assigned tags from a generation script.

Our investigation independently reproduced those results down to the byte, which is a strong validation of both.
Structural Findings (Non-Chance)

1. secp256k1: G = 2·G′ with a structured G′

The point ½·G (that is, ((n+1)/2)·G mod n) has an x-coordinate far shorter than a random point's:

 x(G′) = x(½G) = 0x3b78ce563f89a0ed9414f5aa28ad0d96d6795f9c63   (166 bits)
 y(G′)          = 0xc0c686408d517dfd67c2367651380d00d126e4229631fd03f8ff35eef1a61e3c
 2·G′ = G   ✓


A random curve point's x has ~256 bits. 166 bits means ~90 leading zero bits, which happens by chance with probability ~2⁻⁹⁰. So G was
almost certainly built by choosing G′ first (by its short coordinate) and publishing its double as G.

Scans that found nothing further (the structure is one level deep)

 Scan                                                   Range                       Result

 G/m                                                    m = 2 … 20,000              Only m = 2 is short (166 bits); all others ≥ 240 bits

 G′ + j·G                                               j ≤ 15,000                  No structure

 G′ − j·G                                               j ≤ 3,000                   Only −G′ (same x, negated y — expected)

 G′/2, G′/4 (= G/4, G/8)                                —                           256 and 253 bits, random

 β·x′, β²·x′, ±y (six-point orbit of G′)                —                           Only x′ itself is short


Here β is a cube root of unity mod p (secp256k1 has a = 0, so three x-values share each y). G′ belongs to a 6-point orbit under ±1, ±λ,
±λ²; only one coordinate is short.

Sub-structure of x′

 x′ = 59·2^160 + t,         t = 0x78ce563f89a0ed9414f5aa28ad0d96d6795f9c63     (fills a 160-bit slot)


160 bits is a SHA-1 output width, which motivated a seed search (see below) — it came back empty.

In its own field the structure disappears

Over q = nextprime-on-curve(x′), x′ and its relatives are ordinary full-size elements (½G there is 165 of 166 bits). The "smallness" of x′ is
only relative to secp256k1's p.


2. The shared core across the whole k-curve family

Let C = low 156 bits of x′ = 0x8ce563f89a0ed9414f5aa28ad0d96d6795f9c63 .

Computing x(½G) for all four SECG Koblitz curves:

 Curve                  b       x(½G)                                                                                   Decomposition

 secp160k1              7       0x48ce563f89a0ed9414f5aa28ad0d96d6795f9c62                                              0x4·2¹⁵⁶ + C − 1

 secp192k1              3       0x554123b78ce563f89a0ed9414f5aa28ad0d96d6795f9c66                                       0x554123b7·2¹⁵⁶ + C + 3

 secp224k1              5       0x3b78ce563f89a0ed9414f5aa28ad0d96d6795f9c63                                            0x3b7·2¹⁵⁶ + C

 secp256k1              7       0x3b78ce563f89a0ed9414f5aa28ad0d96d6795f9c63                                            0x3b7·2¹⁵⁶ + C

   secp224k1 and secp256k1 are byte-identical at ½G (odds ~2⁻¹⁶⁶ by chance).
   All four share the 156-bit core C.
   The prefixes (0x4, 0x554123b7, 0x3b7, 0x3b7) and offsets (−1, +3, 0, 0) are unexplained. Simple "first valid x at or above/below a
   base" rules are falsified.

The natural reading: one generation script, with a fixed internal seed/core, a per-curve prefix tag, and a small nudge onto a valid point.
This matches the Heninger–Scholl–Shumow "hand-assigned tags" hypothesis (see 08-prior-work.md ).


3. p ≡ 1 mod 7 across all four k-curves

Every one of the four k-curve primes satisfies p ≡ 1 mod 7. This is:

   Not forced by the stated design criteria (p ≡ 1 mod 3 for the GLV endomorphism, p ≡ 3 mod 4 for cheap square roots, n prime).
   The reason p256 mod p160 is divisible by 7 (all four primes ≡ 1 mod 7, and the exponent gap is a multiple of 3).

This is the one observation without a clean explanation. It may still be a side effect of the generation method, or tie to the curve's behavior
at 7 (where y² = x³ + 7 is singular). It is the most interesting open lead.
Why none of this is a security problem

G, G′, G/4, and any public key are all generators of the same prime-order group of size n. In a prime-order group every generator is
equivalent, related by a known scalar. Which generator was chosen, and how its coordinate looks, has no bearing on the hardness of the
discrete log. The structure is a fact about provenance, not strength.
Verified Security Facts

All computed with pure-Python affine arithmetic plus PARI/GP ( cypari2 , stack raised to 2 GB for ECPP). These are the facts that make
secp256k1 provably clean.


secp256k1 is a prime-order group

 Property                          Result                                         How verified

 p prime                           Yes                                            ECPP certificate ( primecert / primecertisvalid )

 n prime                           Yes                                            ECPP certificate

 #E = n, cofactor 1                Yes                                            SEA point count ( ellcard ); also n·G = O plus Hasse bound 2n > p + 1 +
                                                                                  2√p

 Anomalous (n = p)?                No                                             Direct comparison, n ≠ p

 Small embedding degree            None for k ≤ 10,000                            pᵏ mod n ≠ 1
 (MOV)?

 Trace t                            0x14551231950b75fc4402da1722fc9baef (129      t=p+1−n
                                   bits)

 Order of G′                       n                                              n·G′ = O


Why the cofactor-1 proof is airtight

1. G has order exactly n (n·G = O, n prime, G ≠ O).

2.    E is a multiple of n (Lagrange).

3. Hasse: #E ≤ p + 1 + 2√p.
4. 2n already exceeds that bound, so the only multiple of n that fits is n itself. Therefore #E = n and h = 1.

Independently, ellcard (SEA) returns #E = n directly, confirming it twice.

Why n starts with a long run of f's (it is forced, not chosen)

n = p + 1 − t with |t| ≤ 2√p ≈ 2¹²⁹. Since p = 2²⁵⁶ − 2³² − 977 is just below a power of two, n's top ~127 bits must match p's. Every curve
over this p has an order beginning ffff… . It carries no signal.


Consequence: every non-identity point has order n

G, G′, G/4, and every public key generate the whole group. There is:

      no small subgroup to leak into (cofactor 1),
      no smaller field to descend to (prime field, no subfields),
      no anomalous additive collapse (n ≠ p),
      no pairing shortcut (embedding degree astronomically large).

These are exactly the SafeCurves criteria, and secp256k1 passes all of them. This is what lets us prove there is no single-curve trapdoor,
rather than merely assert it.


The constants

     p = 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f    # 2^256 - 2^32 - 977
     n = 0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141
     Gx = 0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798
     Gy = 0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8
The "Reinterpret in Other Fields" Trick

The idea

Take a coordinate from one field, read it as an integer, and place it on the same equation y² = x³ + 7 over a different prime field. This
always yields a valid point in a new, independent group.

1. Take x′ = x(G′) as an integer.
2. Choose a prime q where x′³ + 7 is a square mod q. About half of all primes qualify (49,686 of 99,996 up to 1.3M), excluding the singular
   characteristics 2, 3, 7.
3. Solve for y over F_q to get a point G_q.


The toy field used throughout

  q   = 0x3b78ce563f89a0ed9414f5aa28ad0d96d6795f9e17   = x′ + 436   (first prime > x′ that works)
  #E = 0x3b78ce563f89a0ed9414f2b423c66d6ee04004d88f    = 223 × n_q
  n_q = 0x4445cde02434617ef12b904e392414034d33ae51       (159-bit prime, ECPP-certified)


 Toy group property                                    Value

 q mod 12                                              7 (same as secp256k1 and secp160k1 p)

 #E(F_q)                                               223 × (159-bit prime)

 Cofactor                                              223

 Order of the x′-point                                 full group (223 · n_q)

 Generic DLP cost                                      ~2⁷⁹·⁵


This is a perfectly valid ECC group of its own — just a weak one (2⁸⁰ security, and a key used with the full-order point leaks d mod 223).


Strength varies wildly across nearby fields — and it depends on q, not x′

Over the first 20 qualifying primes above x′, the largest prime subgroup ranged from 47 bits (~2²³·⁵, laptop-breakable) to 163 bits
(~2⁸¹·⁵). Scanning below x′ (reducing it into smaller fields) gave the same spread.

Crucially, a control experiment (random 166-bit x in place of x′) produced the same distribution (Mann–Whitney |z| ≤ 1.3). The reason:


  E(F_q) depends only on q, never on x. The curve over F_q is fixed; x
  only

  decides whether a given q qualifies (a ~50% filter). So the cofactor 223 and the congruence q ≡ 7 mod 12 are facts about q, not about
  G′.



What transfers between fields, and what does not

Transfers: x-coordinates of multiples, as exact rationals. x(k·P) = φ_k(x) / ψ_k(x)² (division polynomials) is one rational number that
reduces correctly into every field.

Does not transfer: the group law. Reusing coordinates as a map failed 36 of 36 addition tests, and failed even a single doubling. The
reason is structural: Lagrange's theorem forbids any non-trivial homomorphism between a group of prime order n and one whose order is
not a multiple of n. The image would collapse to the identity.

The consequence for attacks

A secp256k1 public key exists only as a value mod p. To use a weak field F_q you would need the exact rational x(Q) = φ_{2d}(x′)/ψ_{2d}
(x′)², which (a) requires knowing d, and (b) has ~2⁵¹² × 166 bits — unwritable. This is exactly the obstacle that sank "xedni calculus"
(Jacobson–Koblitz–Silverman–Stein–Teske).

So the toy field is a genuine weak curve that happens to contain x′, but it has no computable connection to secp256k1
keys.
Dead Ends and Ruled-Out Coincidences

Included deliberately — the leads that looked promising and did not hold up are part of the honest record.


Coincidences that evaporated

 Lead                                           Test                         Result

 x(G′) starts 0x3b ; secp160k1 Gx also starts   byte comparison              One shared byte (~1/256). The rest differs in 75 of 168 bits — like random
 0x3b                                                                        strings.

 0x3 in x′ is a SEC1 compressed prefix          byte alignment; 20-byte      First byte is 0x3b , not 0x03 . The nibble-shifted remainder is not a valid
 ( 0x03 )                                       remainder as a secp160k1 x   secp160k1 x, and matches no k·G or G/m.

 −G on secp160k1 compresses with 0x03           compare 03 3b4c… to 3b78…    Alignment differs; only 0x3b in common.

 p256 mod p160 =                                exact derivation             Equals (2³² + 21389)·2⁹⁶ − 2³² − 977 — just both primes' template constants
 0x10000538cfffffffffffffffefffffc2f has                                     (977 and 21389). Forced by the shared 2^k − 2^32 − c form.
 hidden meaning

 The prime factors of that remainder            curves over each             3 and 7 are the singular primes of y²=x³+7; the 57-bit factor gives a
 ( 3⁵·7·q₁·q₂ ) as fields                                                    supersingular smooth curve hosting x′; none connects to secp256k1.



Ideas that were mathematically impossible

   "Half the private keys pass through the generation of PubK, so select them." Nobody computes k·G by k additions; double-
   and-add visits ~256 intermediate points, not half the group. And even the naive walk gives no shortcut: locating where Q sits on the
   walk is the discrete log.

   A 2²⁵⁶ lookup table. ~10⁷⁹ bytes — about one bit per atom in the observable universe. Even the √n = 2¹²⁸ BSGS table is ~10⁴⁰ bytes,
   ~10¹⁷× all data on Earth.

   Grouping the table by half-points / x-only. The ± symmetry (negation map) saves a factor of 2–4 and nothing more. 256 bits of key
   still need 256 bits of information somewhere.

   "Sparse" public keys. Over a prime field (cofactor 1) every point is k·G for exactly one k; there are still n ≈ 2²⁵⁶ of them. Sparseness in
   the key space (brainwallets, the Android 2013 RNG bug, the 2022 Profanity 32-bit seed) breaks keys — but that is an implementation
   failure, not a curve weakness.

   Reinterpreting as a binary field. No homomorphism crosses characteristic (1+1 = 2 in F_p, = 0 in a binary field). And y²=x³+7 is
   singular in characteristic 2 — there is no "same equation" to reuse.

   Carrying keys into a smaller/weaker field. Pigeonhole: the image of a prime-order-n group is either trivial or has ≥ n elements. A
   smaller field is too small (Hasse), so the only homomorphism is the zero map.


Why "seems secure + our trapdoor" is a contradiction

Every single-curve trapdoor demonstrated is publicly detectable by standard checks — the same checks that proved secp256k1 clean:

 Trapdoor                                                                               Exposing check

 Smooth order (Pohlig–Hellman)                                                          factor n

 Anomalous (Smart)                                                                      is n = p?

 Low embedding degree (MOV)                                                             pᵏ mod n for small k

 Twist-insecure                                                                         factor the twist order

 Weak CM discriminant                                                                   compute the discriminant


A curve that "seems secure" is one that passes these, which means it has none of them. The only hard-to-detect single-curve trapdoor
(Teske's secret isogeny) needs a binary extension field, because there the weakness is not visible in n. Over a prime field the order is
shared across every isogenous curve and is public, so there is nowhere to hide. See 05-H-hypothesis.md .
The H Hypothesis: a Secret Linearizer

The idea

A backdoor would be an efficient map ψ with ψ(k·G) = k·ψ(G) into a group where discrete logs are easy — so k = ψ(Q)/ψ(G). On the complex
torus ℂ/Λ this map exists and is trivial (the elliptic logarithm turns the group into addition on a line). The question is whether a computable
ψ could be hidden in secp256k1.


Every known kind of ψ is ruled out over a prime field

 Kind of ψ                   Status for secp256k1

 Isogeny to a weak curve     Prime-field weaknesses depend on n, t, embedding degree — all preserved by isogenies. Teske's trapdoor needs Weil descent,
 (Teske)                     hence a binary extension field.

 Pairing (MOV / Frey–Rück)   Needs small embedding degree; none for k ≤ 10,000.

 p-adic log (Smart)          Needs #E = p; here #E = n ≠ p.

 Degenerate curve (cusp →    Only at the singular primes 2, 3, 7.
 (F_p, +))

 Unknown non-algebraic ψ     Depends only on the group, not on G; would be a public break of all such curves, not a designer's secret.



Why a generator cannot be a trapdoor

Suppose a secret T lets the designer compute log_G(Q) for any Q. For any other generator G*:

 log_{G*}(Q) = log_G(Q) / log_G(G*)   mod n


Both logs on the right are base G, so T handles them. A trapdoor relative to G is therefore a trapdoor for the whole group — it would have
to live in (p, b), not in the choice of G. And (p, b) are the most rigid parameters in the design: the first qualifying constant c in the 2^k −
2^32 − c template, and b = 7.



The "concealment layer" (chaining isogenies) protects nothing

Chaining isogenies E → E′ → E″ composes into one isogeny of multiplied degree. Finding the connecting chain between two curves is
genuinely hard (the isogeny-path problem — the basis of CSIDH/SIDH), so "I know a secret chain to a weak curve and you can't find it" is a
real trapdoor shape.

But over a prime field it fails: an isogeny preserves the order n. Every curve reachable from secp256k1 by any chain has the same n —
the certified prime. A trapdoor needs a weak endpoint, and weakness over F_p means n is anomalous, smooth, or MOV-able — all
properties of n, which is shared and public. So there is no weak curve to hide a path to; the hiding place is empty. Teske's construction
works only over binary extension fields, precisely because there the weakness is not captured by n.


The honest residue

The only unexplained parameter choices are p ≡ 1 mod 7 across all four k-curves, the four skipped 160-bit template candidates, and b
= 5 (not 2) on secp224k1. None of these is known to connect to any linearizer, and the published prior work (see 08-prior-work.md ) found
no attack. They remain provenance questions, not security ones.
Attacks and Demonstrations

Every result below is from live computation on real curves; all keys were recovered and verified. Toy field sizes so the attacks finish
instantly — the structure is identical at cryptographic sizes, only the numbers grow. Data in data/ .


The keyframe / walk model (baby-step giant-step)

To find d with Q = d·G: store m keyframes at j·m·G, then walk Q + i·G until a hashtable lookup hits a keyframe; then d = j·m − i. The
lookup is O(1), so the only real cost is the walk length. The trade-off is fixed:

 keyframes × walk = n
 2^48 slices × 2^208 walk = 2^256            (cheap storage, hopeless walk)
 2^128      × 2^128      = 2^256             (the balance point; best possible)


Verified end-to-end on F₁₀₀₀₀₀₃ (prime order 999,007): 1,000 keyframes + 644 walk = 1,644 ops, d recovered.


Three attacks on same-size curves ( attacks.html , dlp_demo.json , smart_demo.json )

All three curves are the same size; only the order n differs.

 Curve                         n                                  Shortcut                                Ops (toy size)   At n ≈ 2²⁵⁶

 y²=x³+7 / F₁₀₀₀₀₀₃            999,007 (prime)                    none — BSGS must walk                   1,644            2¹²⁸

 same field, b=1               998,004 = 2²·3·7·109²              Pohlig–Hellman (CRT)                    118              √(largest factor)

 y²=x³+4x+2 / F₁₀₃₁            1031 = p (anomalous)               Smart's p-adic log                      1 p-multiply     O(log p), instant

   Pohlig–Hellman: the one big loop is secretly a CRT stack of tiny loops; the hardest (109² = 11,881) falls in ~110 steps. Key recovered.
   Smart's attack: implemented via projective p-multiplication over Z/pᴷ and a formal-parameter ratio; recovered d = 489 on F₁₀₃₁ with 2
   scalar mults + 1 inverse.

All three weaknesses live in n (set by p and b); the generator G never enters. secp256k1 is immune because its n is a certified prime equal
to neither p nor a smooth number.


The torus as an I/Q signal + Shor ( fft_demo.json )

Read each multiple k·G as one complex sample.

   Torus I/Q: successive multiples advance at a constant rate — a pure tone. FFT shows a single spike at the key frequency, zero
   sidelobes (peak at bin 1, 2nd/peak = 0.0000).
   F_p I/Q: the same multiples scatter — broadband noise. FFT is flat (tallest bin only 1.0× the next). The key is invisible.

Classically you cannot build the torus tone over F_p without already walking the group. A quantum computer prepares all samples in
superposition and runs the FFT as the quantum Fourier transform: a 2-D QFT of f(a,b) = a·G − b·Q peaked at (1, 656) and read off d =
437 (true key 437) on the toy curve. That is Shor's algorithm, and it is why secp256k1 — classically ~2¹²⁸ — still needs a post-quantum
successor.


The security ladder (for scale)

 Security level                    Operations                Rough break time

 2²³·⁵                             ~10⁷                      under a second on a laptop

 2⁴⁸                               ~2.8×10¹⁴                 a core-year, or days on one GPU

 2⁷⁹·⁵ (toy field)                 ~10²⁴                     nation-state; beyond the public record

 2⁹²                               ~5×10²⁷                   ~months for planet-scale fixed-function hardware

 2¹²⁸ (secp256k1)                  ~3.4×10³⁸                 out of reach for any foreseeable classical computer


Largest public ECDLP solve to date: ~114–117 bits ≈ 2⁵⁸.
The Double Torus / Isogeny Chain ("Elliptic Swerves")

The object

Each elliptic curve is a torus (ℂ/Λ over the complex numbers). A map between two tori that respects addition is an isogeny; its degree ℓ
says how many times the first winds onto the second. A chain E → E′ → E″ is "one torus mapped to the next, mapped again." (Working
nickname from the investigation: elliptic swerves.)


A real computed chain over F₂₀₀₃

Built with 2-isogenies via 2-torsion kernels:

 Curve                   Equation                                                     j-invariant                        Order

 E                       y² = x³ + 7                                                  0                                  2004

 E′                      y² = x³ + 1257x + 154                                        1922                               2004

 E″                      y² = x³ + 448                                                0                                  2004


The point sets are genuinely different (different coefficients, different j-invariants) yet all three have exactly 2004 points.


What the chain shows (all theorems)

1. Isogeny = torus-to-torus map of degree ℓ. The orbit winds ℓ times faster at each hop. In the I/Q/FFT picture, mapping forward
   multiplies the tone's frequency; composing multiplies the degrees.

2. Every torus in the chain has the same order and trace (Tate: over F_p, isogenous ⟺ same point count). So no hop is secretly
      weaker.

3. Chaining composes into one isogeny of degree ℓ₁·ℓ₂. The walk may cycle back (here j went 0 → 1922 → 0, a short loop) or wander —
      tracing a path through the isogeny graph (an isogeny volcano for ordinary curves, a Ramanujan graph for supersingular ones). Finding
      such a path between two given curves is hard — the constructive basis of CSIDH / SIDH post-quantum key exchange.


Why this closes the trapdoor question

A hidden "second curve governing the shape" is literally an isogenous torus. But because the whole chain shares one order n, a secret
isogeny cannot smuggle a weakness past the public order check over a prime field. This is the geometric statement of the 05-H-
hypothesis.md conclusion.



The visualization

scripts/curve-shapes.html , "Double torus" tab: - Upper half: the three smooth tori with winding orbits (ℓ× faster per hop). - Lower half: the
real F₂₀₀₃ point set of each curve as a camera-facing billboard, with a highlighted k·G point tracking in sync with the winding head above.
Labels read #2004 / j=0 / j≠0 / j=0 — same order, different curve, on screen. - Controls: isogeny degrees, animation speed, zoom.

Data: data/chain_demo.json , data/chain_embed.js .
Prior Work — These Findings Are Already Documented

A literature check established that the structural findings in this investigation are not novel. They were published before, by researchers
well qualified to judge their significance, who reached the same benign conclusion.


The primary source: base-point-origins

github.com/shumow/base-point-origins — by Dan Shumow (co-discoverer, with Niels Ferguson, of the Dual_EC_DRBG backdoor in
2007), with acknowledgements to Nadia Heninger and Travis Scholl. The secp*k1 observation was first presented at the Crypto 2019
rump session (Heninger–Scholl–Shumow).

Their independently reported findings match ours down to the byte:

  x(½G) on secp256k1 = 3b78ce563f89a0ed9414f5aa28ad0d96d6795f9c63 , a 166-bit value — the exact hex we computed.
  secp224k1 and secp256k1 are byte-identical at ½G.
  One ~160-bit block underlies all four secp*k1 values, with differing top nibble / prefix / last nibble — our "shared core."
  They extend it further: secp160r2's ½G shares its first 92 bits with secp160r1's G, and K-163's half-generator has a 126-bit
  x.

Their working hypothesis for the high bytes: hand-assigned tags from a generation process — matching our "one generation script"
reading.

Their verdict, verbatim: "Nothing here is an attack, and nothing here suggests one." They tested several candidate generation methods
and excluded them, but note that no test rules out every possible method. The origin of the generators remains undocumented — but
undocumented is not the same as backdoored.


Secondary sources

  The G = 2·G′ observation (G is double a point with an anomalously small x-coordinate) traces to a Bitcoin StackExchange researcher
  and is written up in third-party cryptanalysis notes. Those notes also stress it proves no backdoor and rest their security argument on
  the transparency of the construction.
  The broader "secp256k1 parameters are deterministic / nothing-up-my-sleeve" framing, and the comparison to P-256's unexplained
  SHA-1 seed, is standard background (see the Nothing-up-my-sleeve number references).


What this means for the investigation

  Validation: we independently reproduced published results to the byte, from scratch, without having seen them first. That is a strong
  correctness check on everything in this export.
  Novelty: the G/2 structure and the shared core are documented, not new. The one item not explicitly addressed in these sources is
  p ≡ 1 mod 7 across all four k-curves; it is likely a side effect of the same generation method, and would be the only thing left to ask
  a number theorist.


Links

  https://github.com/shumow/base-point-origins
  https://en.wikipedia.org/wiki/Nothing-up-my-sleeve_number
  Heninger, Scholl, Shumow — Crypto 2019 rump session (secp*k1 base-point structure)
Reproduction

All results use pure-Python affine elliptic-curve arithmetic plus PARI/GP via cypari2 . For ECPP certificates, raise the stack:
pari.allocatemem(2*10**9) .


 pip install cypari2 numpy --break-system-packages




Constants

 # secp256k1
 p = 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f    # 2^256 - 2^32 - 977
 n = 0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141
 Gx = 0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798
 Gy = 0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8
 x' = 0x3b78ce563f89a0ed9414f5aa28ad0d96d6795f9c63                         # x(G/2), 166 bits

 # secp160k1   (y^2 = x^3 + 7)
 p = 0xfffffffffffffffffffffffffffffffeffffac73                            # 2^160 - 2^32 - 21389
 n = 0x0100000000000000000001b8fa16dfab9aca16b6b3
 Gx = 0x3b4c382ce37aa192a4019e763036f4f5dd4d7ebb
 Gy = 0x938cf935318fdced6bc28286531733c3f03c4fee

 # toy field (reinterpret x' into its own prime field)
 q   = 0x3b78ce563f89a0ed9414f5aa28ad0d96d6795f9e17                    # x' + 436
 #E = 0x3b78ce563f89a0ed9414f2b423c66d6ee04004d88f                     # 223 * n_q
 n_q = 0x4445cde02434617ef12b904e392414034d33ae51                      # 159-bit prime

 # shared core across the k-curves
 C = 0x8ce563f89a0ed9414f5aa28ad0d96d6795f9c63                         # low 156 bits of x'


Get other curves' parameters:

 openssl ecparam -name secp192k1 -param_enc explicit -text -noout
 openssl ecparam -name secp224k1 -param_enc explicit -text -noout




Key PARI calls

   ellinit([a,b], p) — the curve y² = x³ + ax + b over F_p
   ellcard(E) — point count (SEA)
   ellordinate(E, x) — y-values for a given x (lift x to a point)
   ellmul(E, P, k) , elladd , ellisogeny(E, kernel)
   primecert(n) / primecertisvalid(c) — ECPP primality proof
   factor(N) — factor an order
  Cube root of unity mod p: pow(g, (p-1)//3, p) for any g giving a value ≠ 1


Scripts ( scripts/ )

   cof.py — secp256k1 constants + affine add/mul + Miller–Rabin; the base helper.
   curve-shapes.html — torus / 2-sheets / 4D / isogeny-chain / finite-field views.
   attacks.html — BSGS vs Pohlig–Hellman vs Smart + FFT/Shor, with embedded data.
   dlp-collapse.html — earlier two-panel version of the attacks page.



Data ( data/ )

   dlp_demo.json — safe vs smooth-order curve, op counts, factorizations.
   smart_demo.json — anomalous curve, recovered key, BSGS-√ comparison.
   fft_demo.json — torus vs field spectra, Shor 2-D peak and recovered key.
   chain_demo.json , chain_embed.js — the isogeny chain curves and ordered orbits.



Note on the interactive pages

The three HTML files are self-contained and also live as published artifacts. They load Plotly from a CDN; open them in a browser. The
attacks page embeds its demo data inline, so it runs offline.
Open Questions and Handoff Tasks

The investigation is effectively closed on the security question (clean) and the novelty question (not novel — see 08-prior-work.md ). What
remains is a small set of pure provenance / number-theory curiosities.


The one genuinely open lead

Why is p ≡ 1 mod 7 on all four SECG k-curve primes?

  It is not forced by the stated design criteria (p ≡ 1 mod 3, p ≡ 3 mod 4, n prime).
  It accounts for the factor of 7 in p256 mod p160 .
  Candidate explanations to test:
  a side effect of the generation script (most likely),
  a relation to the curve's behavior at 7 (where y²=x³+7 is singular),
  7-torsion structure of the sextic twists,
  the four skipped 160-bit template candidates (below) all being ≢ 1 mod 7.


Remaining verification / forensic tasks

  [ ] Skipped 160-bit candidates. For p = 2¹⁶⁰ − 2³² − c, the published c = 21389. Check c ∈ {3929, 16919, 18293, 20309}: do they
  give primes p ≡ 1 mod 3 admitting a prime-order y²=x³+b? Record each one's p mod 7. Does "p ≡ 1 mod 7" distinguish the chosen one,
  or is another rule at work?
  [ ] secp224k1 b = 5 vs 2. b = 2 gives the same prime order; why was b = 5 used? Compare orders, twist orders, and x(½G) structure.
  [ ] Template congruences. Tabulate p, n, t mod every prime ≤ 100 across the four k-curves; flag shared residues not implied by the
  design criteria (the known one is p ≡ 1 mod 7).
  [ ] Confirm against base-point-origins. Cross-check our prefix/offset values (0x4/0x554123b7/0x3b7/0x3b7; −1/+3/0/0) against the
  Heninger–Scholl–Shumow writeup.


Tasks already completed (for the record)

  [x] secp256k1 G/2 structure, G/m scan, six-point orbit — done.
  [x] Shared core across all four k-curves; secp224k1 = secp256k1 byte-identical — done.
  [x] Security certificates (ECPP, #E = n, cofactor 1, MOV, anomalous) — done.
  [x] Seed search for x′ / t (2.37M digests, MD5/SHA-1/SHA-2/RIPEMD) — negative.
  [x] Toy-field reductions vs random controls (Mann–Whitney) — indistinguishable.
  [x] Attack demos (BSGS, Pohlig–Hellman, Smart, FFT, Shor) — all keys recovered.
  [x] Isogeny chain over F₂₀₀₃ — same order confirmed across E, E′, E″.
  [x] Literature check — findings reproduce Heninger–Scholl–Shumow (2019).


Scope note

Everything here is provenance forensics and defensive analysis. The investigation explicitly did not build a trapdoored curve or a
concealment construction; the analysis shows why no such thing can hide in a prime-field curve like secp256k1.
