Like the rest of y'all, I'm pulling over-time shifts in the Rumooor Mill in
an attempt to get to the bottom of wtf is going on rn as pertains to PQAI
cryptanalysis.

One notable line of potentially more plausible speculation is that there
exists (but only known to Those That Know) a new algorithm that reduces the
security of an n-bit Elliptic Curve key from N/2 bits to N/3 bits [1]. If
this is true, then the 256-bit Elliptic Curve used by Bitcoin only provides
~85 bits of security rather than 128. This rumor is somewhat bolstered by
the fact that the NSA for many years has advocated a move to 384 bit ECC
(384/3 = 128), on top of Google Chrome's move to reject P-256 certs in a few
months [2].

If this is the case, then one thing we can do to further harden Bitcoin is:
move to a larger Elliptic Curve with all the same properties (eg: those like
the GLV endomorphism that allow special optimizations) we know and love with
secp256k1.

Personally, I'm a strong advocate for _only_ deploying hybrid-PQ schemes,
which always utilize a classical _and_ PQ cryptosystem for defense in depth:
the new scheme is secure if the classical assumptions hold OR the
post-quantum assumptions hold. However if the existing classical schemes we
rely on are broken, or greatly weakened, then not much is to be gained by
retaining the classical leg. However, if _larger_ curves are as secure as we
formerly believed the existing curves to be, then we can still keep the
hybrid dream alive by coupling an upgrade that adds a new PQ signature type
with the migration to a larger curve for the classical cryptosystem.

Retaining the ability to continue to utilize Elliptic Curves in their
current form has several advantages:

  * We can go hybrid, ensuring that Bitcoin isn't only reliant on the
    security of a single digital signature cryptosystem.

  * Even with bigger curves, public keys and signatures are only slightly
    larger than the existing 256-bit versions.

  * All the great schemes such as: musig2, threshold signatures, adapter
    signatures, etc -- can still be relied upon.

  * We lessen the burden on hardware wallets and custody systems to migrate
    to entirely new key generation and security processes.

  * There're paths to permit users to securely map between their existing
    secp256k1 keys and a larger curves (zk proofs or proofs of discrete log
    equivalence).

## A Class of Candidates for a Larger Curve: secp384k1

Further pursuing this inquiry, I've begun work on searching for a
"secp384k1" curve, which is a Koblitz-style curve that retains many of the
positives attributes of secp256k1, namely:

  * The new curve should have a cofactor of 1.

  * The new curves should be able to employ many of the optimizations that
    we enjoy in libsecp256k1, so a cheap endomorphism to enable the GLV
    based speed ups, etc.

  * Embedding degree of `n-1`.

  * The new curve (optionally), also has a secq analog, which enables forms
    of efficient cryptographic protocols to be built upon the curve (eg:
    zero knowledge proofs via cycles of elliptic curves) [5].

Compared to secp256k1 which has 33/32 byte keys and 64-byte signatures,
secp384k1 has 49/48 byte keys and 96 byte signatures.

The current set of candidates can be found in this Github repo:
https://github.com/Roasbeef/secp384k1. The repo contains Lean+PARI/GP
programs that certify key security properties of the set of candidate
parameters.

The process (which is 3rd party verifiable) used to produce these candidate
curves can be found here [3].

The current candidate most favored by myself and my fleet of machine
intelligence helpers is a 384-bit curve with a prime of `2^384 - 225114369`
[6]. The full parameters are:

```
p      = 2^384 - 225114369
       =
0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff29506ff
n      =
0xfffffffffffffffffffffffffffffffffffffffffffffffe267ad6b9071c17330362ea374cbd1d5136432c91592e0c71
b      = 7
Gx     = 0x1
Gy     =
0x74ca6fba6612e219b7e2e1100ca93b9ca808c90a692df81d671c842fceeaed9422614bee9aece32569bd9f8e6eef0065
beta   =
0x7096eccefa2057c85292100cf31e330d82ba2e5a7fa3ed0d44a178f27282f01b4b1ac1a17616e57647a1cf30efa78cfc
lambda =
0x1ed8c9e3ee45b84875020eea10bab47a8688231ff136628392fcfbfe630b58519d3a4d5bd879c1d4c5c7f45bb95b0608
```

## Hybrid Deployments Expand the Design Space

As mentioned above, retaining our ability to deploy a hybrid scheme expands
the design space, as otherwise any new output types _should_ only allow the
PQ signature if the existing EC candidates are completely broken, in order
to avoid another predictable emergency flag day in the future. IMO any
proposed new output type MUST NOT make the public keys associated with
unspent pk scripts plainly visible on the chain.

In concrete terms, this means that a hypothetical P2TRv2 (additional layer
of indirection so hashed key on the chain), would be able to retain its key
path (for a longer period of time?), and still allow all the great
cryptographic techniques that our ecosystem (and especially our Layer 2s!!)
know and love.

However if we feel that a larger curve (eg: we can go even larger than 384)
are still a non-starter, then the only reasonable options are the P2MR/P2QR
family of output types that disallow using classical digital signature
schemes all together.

## Hypothetical secp256k1 -> secp384k1 Migration Path

One other advantage of retaining the hybrid option with a larger curve is
that we can _map_ secp256k1 keys to a future secp384k1 curve! A private key
is just a large number, for secp256k1 that number is below the secp384k1
group order. So the same key is actually a valid secp384k1 scalar. This
doesn't update security (you need to move to new freshly generated keys),
but may help the transition across the ecosystem.

Given the above, assuming a key has never been revealed on chain, we have a
few options to permit batched on-chain migration from secp256k1 keys to
secp384k1 keys. Wallets would still retain their existing seeds and private
keys in the process.

One option would be using a PQ ZKVM to prove that: "there exist k, P, Q such
that P = kG, Q = kG', H(P) = h₁ and H(Q) = h₂". I've previously described
such schemes that can be used to implement a rescue path for users who
derived their private keys via a hash invocation [4]. Such a proof would ofc
need to be bound to the spending transaction.

Alternatively, a much less heavy weight path would be a bit-decomposition
sigma protocol of discrete log equivalence, which can be created+validated
without any sort of trusted set up or special VM.

---

If we feel that a 384-bit curve doesn't give a sufficient security margin,
then we can go even beeger: reaching for 448 or even 512-bit curves.

Thoughts?


-- Laolu

[1]: https://www.johndcook.com/blog/2026/12/05/dlp-attack/

[2]: https://blog.google/security/keeping-https-connections-safe-in-chrome/

[3]:
https://github.com/Roasbeef/secp384k1/blob/main/docs/wiki/concepts/selection-rules.md

[4]: https://github.com/Roasbeef/bip32-pq-zkp

[5]: https://github.com/Roasbeef/secp384k1/issues/2

[6]:
https://github.com/Roasbeef/secp384k1/blob/main/docs/wiki/curves/secp384k1.md

-- 
You received this message because you are subscribed to the Google Groups 
"Bitcoin Development Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/bitcoindev/CAO3Pvs_sXvnAVzVbzUmhFggqbYe6jcc571g%3DYVacoKiDxAqPXQ%40mail.gmail.com.

Reply via email to