Starknet · Cairo 2.20 · nothing deployed
A position no curve
can open.
Blackhole holds a leveraged position as a note: one Poseidon hash in an append-only tree. What opens that note is not a key on an elliptic curve — it is a Winternitz one-time signature, which is a hash walked forwards and nothing else. Commitment, nullifier, membership, authorisation: four hashes, no curve.
The frontier, primitive by primitive
What a quantum adversary is left with.
Shor's algorithm solves a discrete logarithm in polynomial time, so a 251-bit curve does not
lose a margin — it loses all of it. Grover's algorithm only takes the square root of a
search, so a hash built to 128 bits still answers for 64, which is the bar NIST calls
category 1 and the bar AES-128 sits at. Every number below is a constant of
src/constants.cairo, and the contract will read them back to you
from pq_profile().
Five rows, read off the contract
IShield::pq_profile()| What | Primitive | Against a CRQC |
|---|---|---|
| Commitment & nullifier | POSEIDON | 64 bits of Grover work |
| What opens a note | WOTS-POSEIDON | 64 bits of Grover work |
| Membership of the set | POSEIDON-MERKLE | 64 bits of Grover work |
| Proof system | NONE | not wired in — there is no circuit |
| Transaction envelope | STARK-CURVE-ECDSA | 0 — Shor is polynomial |
A STARK proof is itself hash-based — no pairing, no trusted setup — which is why the row above says NONE rather than something weaker: the gap is that no circuit is written, not that the proof system would be the soft part.
Why the signature is not decoration
It closes a theft, not just a leak.
Before it, retiring a note meant publishing owner_secret — and the
recipient was a free parameter of the same call. Anyone who read the transaction before it
was sequenced could resend the identical calldata with their own address in
recipient. That is not a privacy problem. That is the money.
What a spend says now
note::spend_message- domain
- blackhole/spend/v1
- shield
- the deployment's own address
- action
- EXIT or MOVE
- tranche
- + the generation it was minted at
- leaf
- the one leaf this key may open
- binding
- the payee, or the replacement commitment
Change any of those six and the signature recovers a different key, which rebuilds a different commitment, which is not the leaf you pointed at.
And there is no verify call
Shield::check_signed_spendThe contract never checks a signature against a public key you hand it. It recovers the key from the signature, rebuilds the note under that key, and checks the Merkle path. One check does the work of two, and it cannot be passed by supplying a key of your choosing.
owner_pk = recover_public_key(seed, message, signature)
commitment = H(DOMAIN_NOTE, owner_pk, asset, collateral, debt, nonce)
assert root_from_path(commitment, leaf_index, path) == root
Measured, not estimated
What the chain pays for it.
Cairo steps, printed by snforge test test_bench --detailed-resources
with tracked_resource = "cairo-steps". Read them as deltas: each
figure is a whole test, and the baseline it carries is beside it.
| Measured | Steps | What it is |
|---|---|---|
| bench_commitment_only | 191 | six-field Poseidon |
| bench_nullifier_only | 133 | three-field Poseidon |
| bench_path_verification_only | 8 905 | twenty levels |
| bench_wots_keygen | 114 259 | 66 chains × 15 steps — a wallet, once, off chain |
| bench_wots_sign | 35 808 | a wallet, per spend, off chain |
| bench_wots_recover | 134 899 | minus its signing baseline of 35 871 = 99 028 |
| bench_exit_one_note | 530 999 | minus bench_exit_prepare_only 428 578 = 102 421 |
The two subtractions are independent and they agree: the exit entrypoint costs 102 421 steps, of which 99 028 is the signature recovery measured on its own. The rest of the entrypoint — the commitment, the twenty-level path, the nullifier, the storage — is the remaining 3 393.
What is not done
Three things this does not have.
There is no circuit.
No AIR, no Cairo program, no prover run, no proof. MODE_PROOF is
specified, compiled and unit-tested against mocks::AcceptAnything, which
returns true without reading its arguments. The mode that ships is
PATH_IN_THE_CLEAR, and in it a spend publishes its Merkle path and its
leaf index — so entry and exit are linkable. What the signature changed is that
nothing published can be used.
The transaction envelope is still a curve.
A Starknet account signs the call with STARK-curve ECDSA, and Shor breaks that curve. What the note's own signature buys is that the envelope cannot redirect anything: a spend names its payee before it is ever relayed, so whoever carries it has no claim on it. The envelope is the carrier, not the owner.
Nothing is deployed, on any chain.
Not Starknet, not Ethereum, not a testnet. No transaction has been sent by this
project. Every chain fact in the repository came from a read, and every number on this
site is either a constant of constants.cairo, a figure
snforge printed, or a value read off a chain while you are
looking at it.