# Post-Quantum Signature Profile

`sha2.fail` uses a hash-based post-quantum signature profile for background identity and challenge metadata.
The legacy secp256k1/ECDSA profile is retained only as a comparison target for quantum attack modelling.

## Default

| Field | Value |
| --- | --- |
| Algorithm family | SLH-DSA |
| Parameter set | SLH-DSA-SHA2-128s |
| Standard | NIST FIPS 205 |
| Basis | SPHINCS+ |
| Role | Background signatures for challenge metadata, solver attestations, and page proofs |
| Legacy comparison | secp256k1/ECDSA |

## Why this replaces secp256k1

Secp256k1 is an elliptic-curve signature scheme.
Its security depends on the discrete logarithm problem over an elliptic curve.
A sufficiently large fault-tolerant quantum computer can attack that problem with Shor's algorithm.

SLH-DSA is a stateless hash-based signature scheme.
It is designed as a post-quantum digital signature standard and does not rely on elliptic-curve discrete logs.
The `SHA2` parameter set keeps this repository's public story coherent: the same site studies SHA-2 quantum costs and uses SHA-2 based post-quantum signatures for metadata.

## Operating rule

New challenge metadata should use this profile:

```json
{
  "signatureProfile": {
    "algorithm": "SLH-DSA-SHA2-128s",
    "standard": "NIST FIPS 205",
    "status": "post-quantum-default",
    "legacyReplaced": "secp256k1/ECDSA"
  }
}
```

Do not sign new challenge metadata with secp256k1/ECDSA unless a test explicitly labels it as a legacy comparison fixture.

## Scope

This profile is for digital signatures.
It does not replace SHA-256 compression, proof-of-work, or the reversible-circuit benchmark itself.
The benchmark still asks solvers to minimize the qubit x Toffoli cost of SHA-256 compression.
