DP: Scheme registry for EIP-8288 dependency frames

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.

  • scheme is 31 zero bytes and one identifier byte. The EIP defines 0x10 (LEANSPHINCS_SCHEME) and 0x11 (LEANSTARK_SCHEME). The EIP reserves 0x11 until it defines get_deps_hash for leanSTARK.
  • For leanSPHINCS, verification_key_hash is the 32-byte public key itself. For leanSTARK, verification_key_hash is 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

  1. 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 a vk_hash verifies, or whether anyone audited that verifier program.
  2. The scheme field may change. A proposal in the thread drops leanSPHINCS and the scheme field. It uses one batched leanSTARK that a vk_hash identifies. Under that design, the registry is the only place that maps a vk_hash to a scheme.
  3. 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.
  4. 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_hash values.

Open questions

  1. Should the registry key on vk_hash only, if EIP-8288 drops the scheme field?
  2. Should one code cover more than one verifier program for the same profile, for example two audited leanSTARK verifiers?
  3. Does omission accountability (receipts for dependencies that a builder did not include) belong here? The thread placed it outside the frame.
  4. 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.toml in the site repository
  • hashsigs-solidity: SHRINCS and SPHINCS+C verifiers with PROFILE_TAG (commit 0b8a74b)
  • ethereum-sdk, src/v1/shrincs/hd.ts: the algorithm level of QUIP HD derivation (commit 8e1c3db)