Overview Signature Desk Reference

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().

Poseidon, by design 128bits The security target of the instance Starknet's VM computes natively. Stated as the parameter it is, not measured here.
After Grover 64bits Half the exponent, because a quantum search is a square root. 2 × 64 = 128 is an assertion in test_pq.
The envelope, after Shor 0bits Starknet accounts sign a call with a curve. That part is not ours and it is not post-quantum — see the gate below.
One signature 66felts 63 chains of message, 3 of checksum. The checksum is what makes a forgery need a preimage.

Five rows, read off the contract

IShield::pq_profile()
WhatPrimitiveAgainst a CRQC
Commitment & nullifierPOSEIDON64 bits of Grover work
What opens a noteWOTS-POSEIDON64 bits of Grover work
Membership of the setPOSEIDON-MERKLE64 bits of Grover work
Proof systemNONEnot wired in — there is no circuit
Transaction envelopeSTARK-CURVE-ECDSA0 — 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_spend

The 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.

MeasuredStepsWhat it is
bench_commitment_only191six-field Poseidon
bench_nullifier_only133three-field Poseidon
bench_path_verification_only8 905twenty levels
bench_wots_keygen114 25966 chains × 15 steps — a wallet, once, off chain
bench_wots_sign35 808a wallet, per spend, off chain
bench_wots_recover134 899minus its signing baseline of 35 871 = 99 028
bench_exit_one_note530 999minus 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.