Working group: Interoperability (verifier evaluation overlaps with ZK-PQ)
Status: Discussion Paper. Looking for supporters other than the author.
Author affiliation: Postquant Labs (developer of Quip Network).
Summary
Make one registry of post-quantum scheme identifiers. Wallets, bridges, hardware signers, and verifiers then name a scheme and its parameter set the same way. The registry extends the scheme field of EIP-8288 and adds identifiers and encodings to the Alliance’s existing algorithm registry.
Background: EIP-8288
EIP-8288 adds a dependency verification frame (mode 4) to EIP-8141 frame transactions. Each dependency is a 96-byte triple scheme ‖ data_hash ‖ verification_key_hash. Block builders replace the dependencies with one recursive STARK that proves every dependency.
schemeis 31 zero bytes and one identifier byte. The EIP defines0x10(LEANSPHINCS_SCHEME) and0x11(LEANSTARK_SCHEME). The EIP reserves0x11until it definesget_deps_hashfor leanSTARK.- For leanSPHINCS,
verification_key_hashis the 32-byte public key itself. For leanSTARK,verification_key_hashis the hash of the STARK verification key. - The EIP says users of other schemes must “either use them in the clear, and accept the onchain gas costs of doing so, or wrap them client-side in a STARK, and then reuse the leanSTARK route.”
Problem
- A verification key hash says nothing about the scheme behind it. On the leanSTARK route, a dependency names its verifier only by
vk_hash. A wallet, bridge, or explorer cannot tell which algorithm and parameter set avk_hashverifies, or whether anyone audited that verifier program. - The scheme field may change. A proposal in the thread drops leanSPHINCS and the
schemefield. It uses one batched leanSTARK that avk_hashidentifies. Under that design, the registry is the only place that maps avk_hashto a scheme. - Lattice schemes are out of the base layer by design. The EIP author keeps the base layer hash-based, to keep its dependencies minimal. ML-DSA and FN-DSA users still need a shared way to name their verifier.
- Identifiers are already diverging. SHRINCS contracts use
PROFILE_TAG = keccak256("shrincs-256s-keccak"). QUIP HD derivation reserves a 31-bit algorithm level. EIP-8288 uses one byte. Each new project adds its own scheme.
Proposal
Add a profile table to the algorithm registry. A profile is one algorithm with one parameter set. Each profile has:
| Field | Content |
|---|---|
code |
A 31-bit identifier, used at the HD algorithm level (see the companion Wallet Security paper) and in other protocols. |
eip8288_scheme |
The one-byte EIP-8288 scheme value, if the base layer enshrines this profile. |
algorithm |
The existing registry id, for example slh-dsa or shrincs. |
parameters |
Parameter set and NIST security category. |
stateful |
Whether the signer must track state, and the recovery path if it does. |
public_key |
Encoding, and how verification_key_hash comes from it (hash function and domain tag). |
data_hash |
The message hash for a signature, or the public input hash for a STARK. |
witness |
Encoding of the public key and signature or proof that the verifier receives. |
verifiers |
leanSTARK vk_hash values with source and audit, ERC-7913 verifier addresses for each chain, and contract profile tags. |
test_vectors |
Link to vectors. |
status |
experimental, proposed, or registered. Profiles advance like documents: Discussion Paper, Proposed Standard, Alliance Standard. |
Identifier ranges for code:
| Range | Use |
|---|---|
0x00000000–0x000000FF |
The same value as the EIP-8288 scheme byte, for profiles that the base layer enshrines (0x10 leanSPHINCS, 0x11 leanSTARK). |
0x00000100–0x7EFFFFFF |
Registered profiles. |
0x7F000000–0x7FFFFFFE |
Private use. |
0x7FFFFFFF |
Experimental. Already in use by QUIP HD derivation v1. |
Candidate first profiles. This paper assigns no codes yet.
- leanSPHINCS and leanSTARK (EIP-8288)
- SHRINCS-256s-Keccak and SHRINCS-256s-SHA2
- SHRINCS-128s-q18 and SHRINCS-128s-q20 (experimental)
- SPHINCS+C-256s
- SLH-DSA (FIPS 205)
- ML-DSA-44, ML-DSA-65, and ML-DSA-87 (FIPS 204)
- FN-DSA
Deliverables
- The profile schema as a change to
registry/data/algorithms.toml. - A first set of profiles with test vectors.
- A note to the EIP-8288 authors that proposes the registry as the reference for scheme values and for known
vk_hashvalues.
Open questions
- Should the registry key on
vk_hashonly, if EIP-8288 drops theschemefield? - Should one
codecover more than one verifier program for the same profile, for example two audited leanSTARK verifiers? - Does omission accountability (receipts for dependencies that a builder did not include) belong here? The thread placed it outside the frame.
- Should hybrid schemes, such as ECDSA wrapped in a STARK (proposed in the thread as Hybrid Provable Signing), get profiles?
References
- EIP-8288 discussion and the EIP text in
ethereum/EIPs - Alliance algorithm registry, data in
registry/data/algorithms.tomlin the site repository hashsigs-solidity: SHRINCS and SPHINCS+C verifiers withPROFILE_TAG(commit0b8a74b)ethereum-sdk,src/v1/shrincs/hd.ts: the algorithm level of QUIP HD derivation (commit8e1c3db)