ERC-8373: Post-Quantum Anchored Key-Binding

Binds classical keys to post-quantum keys through anchored statements and lets consumers enforce an anchor-time cutoff.


Metadata
Status: DraftStandards Track: ERCCreated: 2026-08-05
Authors
Tiago Merlini (@TMerlini), babyblueviper (@babyblueviper1), Pavlo Tvardovskyi (@pipavlo82), Matthias Hauser (@0x2kNJ), Faisal Firdani (@zexoverz)

Abstract


This ERC specifies a migration path for the signature layer of on-chain and agent identity to post-quantum (PQ) cryptography. A binding statement — a content-addressed, canonically-serialized declaration that a classical key is bound to a PQ key — is anchored to a public timestamped substrate before any cryptanalytic break. Consumers enforce a cutoff: an artifact proven anchored before the cutoff verifies classical-only (the cutoff never retroactively invalidates the back catalog; only a revocation ends a binding's authority, from its own anchor time); an artifact anchored at or after the cutoff must carry a valid PQ companion signature under the binding in force at that artifact's anchor time, or be rejected.

The central design decision is that this is a binding plus cutoff, not a second signature. A supplementary PQ signature is opt-in from the forger's perspective: an attacker who derives the classical key simply omits it, and the omission is indistinguishable from honest pre-migration history. Under this ERC, post-cutoff omission fails closed. When the anchor is an Ethereum transaction sent from the classical address, the anchoring transaction itself is the classical proof-of-possession — one irreversible, timestamped, recomputable fact instead of a second signature to forge around. Every element is re-derivable from public data by any third party.

Motivation


Shor's algorithm breaks the Elliptic Curve Digital Signature Algorithm (ECDSA) and Schnorr signatures underlying Ethereum accounts, most of Web3, and most AI-agent attestation identity. Hash functions survive (Grover's algorithm only halves effective security; 256-bit hashes remain safe). The risk to signature-based identity is prospective forgery, not retroactive decryption: nothing already anchored on-chain is at risk, because a future key-forger cannot backdate into an existing anchor. What breaks is the ability to trust new signatures after a cryptographically-relevant quantum computer exists.

The common proposal — "attach a PQ signature alongside the classical one" — does not close the hole, for a structural reason: verification of the extra signature is opt-in, and a forger opts out. Security must instead live in a pre-published binding and a consumer-enforced cutoff, so that the absence of a valid PQ companion after the cutoff is itself a rejection.

Identity standards in the agent family (for example ERC-8004 registries) all rest on signature-based identity and inherit this exposure. This ERC provides the migration primitive they can share.

Specification


The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 and RFC 8174.

Definitions

  • Classical key — a secp256k1 key (ECDSA or BIP-340 Schnorr) controlling an identity.
  • PQ key — a key under a post-quantum signature standard finalized by the National Institute of Standards and Technology (NIST): Module-Lattice-Based Digital Signature Algorithm (ML-DSA, Federal Information Processing Standard (FIPS) 204) or Stateless Hash-Based Digital Signature Algorithm (SLH-DSA, FIPS 205).
  • Binding statement — the canonical JSON object declaring classical→PQ key binding (below).
  • Content-address — sha256(JCS(statement)), where JCS is RFC 8785 JSON Canonicalization (sorted keys, compact separators, literal non-ASCII UTF-8).
  • Anchor — publication of a content-address to a public, timestamped, append-only substrate. Anchor time is the substrate's timestamp for that publication (e.g. the Ethereum block timestamp of the anchoring transaction).
  • Companion — a detached PQ signature over an artifact's 32-byte content-address.
  • Cutoff — a consumer-chosen instant after which classical-only artifacts are rejected.
  • In-force binding — the binding governing an artifact, resolved from the anchored binding chain at the artifact's anchor time.

Binding statement

A binding statement is a JSON object. The following members are REQUIRED:

fieldtypemeaning
schemastringthe implementation-namespaced binding-statement schema (e.g. kya.pq_key_binding.v0, or a deployment's own namespace such as invinoveritas.pq_key_binding.v1) — distinct from the consumer's cutoff-enforcement profile; opaque to enforcement (see The cutoff rule)
secp256k1_pubkeystringthe classical public key (hex)
pq_pubkeystringthe post-quantum public key (hex)
algorithmstringthe PQ algorithm identifier (e.g. ML-DSA-65, SLH-DSA-SHA2-192s)

A bound_at timestamp is RECOMMENDED; it is informative and never used for authority. A statement MAY carry a profile member as a deployment label. Enforcement MUST NOT read it: the cutoff-enforcement profile (e.g. pq_key_binding.v1) is fixed by the consumer's configuration, not by the statement. algorithm is a field, not a fork: implementations under different NIST families MUST converge on the same content-address rules through canonicalization alone.

The canonical form is JCS(statement); the binding's identity is content_address = sha256(JCS(statement)). Verifiers MUST recompute the content-address from raw bytes; any key manifest or hosted copy is discovery only, never authority.

Admission. A consumer enforcing pq_key_binding.v1 admits a binding statement only if all of the following hold, checked in this order; the first that fails gives the result. A statement that fails any of them MUST NOT be resolved as a binding.

  1. Size. JCS(statement) is at most 6208 bytes, checked against the raw byte length before any parsing. This bound is derived, not chosen: 2 × 2592 + 1024, where 2592 bytes is the largest public key among the admitted families (ML-DSA-87), carried as hex in pq_pubkey, and 1024 bytes covers every other member.
  2. Shape. The statement is a JSON object, and every member value is a string, an integer, or an object whose member values are strings or integers (one level of nesting).
  3. Canonical form. The raw bytes are exactly JCS(statement), and every integer is within ±(2^53 − 1), the range in which RFC 7493 (I-JSON) and therefore JCS represent integers exactly.
  4. Member names. Every member name, including those of a nested object, is at most 64 bytes in its escaped JCS form.

A checker MUST report a failure of (2) as unsupported shape, separately from a failure of (3), not canonical. Booleans, null, non-integer numbers, arrays and deeper nesting are valid RFC 8785 that this profile does not admit; they are not broken JCS.

The bounds belong to the profile and are versioned with it; they are not protocol constants. A profile that admits a larger-key family re-derives (1) by the same rule, so that algorithm stays a field, not a fork. The admission rules constrain the statement's form only; they do not change the cutoff rule, the content-address or in-force resolution. Parameters, derivation and vectors: pq-key-binding-v1.canonicalization.json and pq-key-binding-v1.canonicalization-vectors.json in the assets directory.

On-chain enforcement (informative). An anchor contract that cannot parse JCS on chain can admit sha256(raw) subject to bound (1), which needs only the raw length, and settle (2)–(4) by a bounded fraud proof within a challenge window. A one-segment refutation of (4) requires the segment size to be strictly greater than the member-name bound, so a deployment that raises the name bound to or above its segment size loses the one-segment proof, and re-deriving (1) does not catch it. Such a contract inherits a one-honest-watcher assumption for (2)–(4). An off-chain consumer checks all four directly.

Anchoring and proof-of-possession

The binding's content-address MUST be anchored before it is relied upon. When the anchor substrate is an Ethereum transaction (e.g. recording the digest via an anchoring contract), the transaction MUST be sent from the classical address being bound. The anchoring transaction then constitutes the classical proof-of-possession: no separate classical signature over the statement is required, and a verifier MUST NOT accept a separate classical signature over the statement in place of the anchoring transaction.

The genesis binding MUST additionally be signed by the PQ key over its own content-address (proof of possession of the PQ key; neither key alone can claim the other).

Anchor availability: an anchor is only a cutoff for a verifier who can fetch it. An on-chain anchor is permissionlessly readable. An implementation using an off-chain timestamp proof MUST serve the proof bytes publicly; an unreachable proof collapses the cutoff to holder-only verification and does not satisfy this ERC.

Companion signatures

A PQ companion is a detached signature over the primary artifact's existing 32-byte content-address (for example, a Nostr event id or an attestation digest) — never an in-object tag. An in-object tag lives inside the id preimage, so retrofitting it re-mints the id and orphans every existing anchor; the detached companion signs the identifier everyone already computes, identically for past and future artifacts.

The cutoff rule

A consumer MUST first resolve the artifact's in-force state (pre_baseline, in_force or authority_revoked, defined in Rotation, revocation, and in-force resolution) from the anchored binding chain at the artifact's anchor time t, and then apply the cutoff C as follows:

  1. pre_baseline: accept classical-only if t < C. If t ≥ C, reject: no binding is in force to verify a companion under.
  2. authority_revoked: reject, whether t is before or after C.
  3. in_force: if t < C, accept classical-only. If t ≥ C, accept only if the artifact carries a valid PQ companion under the in-force binding's pq_pubkey.

The comparison with C is strict: an artifact anchored at exactly t == C is on the companion-required side.

All authority judgments use anchor time, never claimed signature time: a compromised key can backdate a signature; it cannot backdate an anchor. A valid companion under a key that is not the in-force key for that anchor time MUST NOT count. The cutoff is consumer-side policy, not issuer-declared.

The schema member is implementation-namespaced and opaque to cutoff enforcement: an enforcer MUST NOT condition its verdict on schema. Enforcement keys only on anchored times, the content-address, and pq_pubkey; the cutoff-enforcement profile, fixed by the consumer's configuration, is the only version identifier that governs, and a statement's own profile member is not read. A binding under any namespace — kya.pq_key_binding.v0, a production deployment's own namespace, or one unknown to the verifier — yields the same verdict as the equivalent known-namespace binding. The conformance suite's namespace opacity case is the failing witness: an enforcer that pattern-matches the namespace fails exactly that case.

Rotation, revocation, and in-force resolution

Bindings form an anchored chain. The in-force binding for an artifact is resolved deterministically from the chain at the artifact's anchor time. Resolution MUST run from the chain even at length one.

  • Rotation — a new binding statement that links its predecessor (predecessor_content_address) and is dual-signed over its own content-address by the predecessor PQ key (continuity: the retiring key authorizes its successor, so the chain survives a classical break) and the new PQ key (possession). Rotation is forward-acting: artifacts anchored before the rotation continue to resolve to the predecessor.
  • Revocation — an anchored revocation record ends a binding's authority at the revocation's anchor time, never retroactively and never at a self-declared time. Artifacts anchored at or after that time are no longer governed by the revoked binding; artifacts anchored earlier remain valid.
  • Terminality — a terminal statement is a standing, fail-closed constraint on the future binding path, not a description of present absence. Two intents MUST be distinguished: a deliberate retirement is absolute; a defensive incident-kill is liftable only by a fleet-level seed-rotation path, never by a per-agent path — otherwise the compromised key could resurrect itself.

Resolution. Each binding has an activation boundary B = max(anchor time, activated_at), where activated_at is an OPTIONAL statement member in integer Unix seconds. activated_at can only delay activation; a value before the binding's own anchor time makes the chain malformed. A binding's revocation anchor R is the earliest anchor time among all authenticated revocation records that name it, so a later revocation never reopens an interval an earlier one closed. The chain MUST be linear: each successor names the current last binding as its predecessor, its anchor time is strictly later than its predecessor's, and its B is not earlier than its predecessor's. A chain that breaks any of these is malformed, and a verifier MUST report artifacts resolved against it as unverifiable. Un-anchored bindings take no part in resolution.

At anchor time t, the governing binding is the last anchored binding in the chain with B ≤ t. If that binding's R ≤ t, no binding governs. Authority MUST NOT fall back to a predecessor, because a rotation retires its predecessor permanently.

In-force states. An artifact's anchor time t resolves to exactly one state. In pre_baseline, B is the first anchored binding's activation boundary; in the other two, B and R are the governing binding's (R ≥ B, when a revocation exists):

  • pre_baseline (t < B) — anchored before any binding governed it; admitted classical-only only if also anchored before the cutoff (the innocent back catalog), and rejected at or after the cutoff.
  • in_force (B ≤ t < R) — governed by the binding; a post-cutoff artifact MUST carry a valid PQ companion under it.
  • authority_revoked (t ≥ R, with no separately anchored successor in force) — the binding's authority has ended; the artifact MUST be rejected, even pre-cutoff.

These states are mutually exclusive by construction. The in_force interval is half-open: activation is inclusive, revocation exclusive. The revocation boundary is correspondingly inclusive on the revoked side — an artifact anchored at exactly t == R is authority_revoked, never still in_force. Successor existence and eligibility are separate resolution facts, not a fourth state: an artifact at t ≥ R resolves to a successor's binding rather than to authority_revoked only when that successor's B ≤ t; in [R, B_successor) the state is authority_revoked. A conformant enforcer MUST NOT collapse pre_baseline and authority_revoked into one reason — they are opposite answers (an innocent back catalog versus deliberately ended authority), and their names MUST NOT share a prefix that would invite a later startsWith check to re-conflate them.

A reason is not a state. The three states above are the normative vocabulary. An implementation's diagnostic field — the reference enforcer in this proposal's assets names it resolution_reason — reports the resolution path that was taken, and MUST NOT be read as the state. The two vocabularies are not in bijection and MUST NOT be assumed to coincide: at t == R the reference enforcer reports no_in_force_binding, because resolution found no eligible binding, while the normative state is authority_revoked. The hazard is that they partially overlap — pre_baseline appears in both, and authority_revoked appears in neither reason set — so a consumer that infers the state from the reason is correct at t < B and wrong at t ≥ R, having been taught the wrong rule by the case that worked. A consumer MUST derive the state from t, B and R, and MUST NOT infer it from a reason string, from the absence of one, or from a substring of one.

Recovery classes

Authority transitions MUST be classified by anchored, falsifiable class declarations (e.g. rotation, revocation, terminal), and each record MUST be judged only against its declared class: a record failing its own class predicate is rejected, never silently relabeled as a neighboring class. This keeps every transition independently auditable by a third party.

The single permitted non-public-recompute step is fleet seed-recovery: replacement keys derive from a secret seed, so a third party cannot re-derive them. The public guarantee for that step is (a) the anchoring transaction is sent by the designated recovery authority (which MUST NOT reduce to the key being replaced) and (b) an anchored commitment (e.g. Merkle root) over the new keys. Implementations MUST state this boundary explicitly rather than imply the recovery is publicly recomputable, and MUST state that compromise of the recovery authority's key is outside what this ERC protects. A zero-knowledge proof of correct derivation MAY replace operator attestation in future versions.

Verification procedure

A verifier, given an artifact and a consumer cutoff:

  1. Recompute the artifact's content-address from raw bytes.
  2. Recover the artifact's anchor time from the anchor substrate. If the anchor cannot be proven, report the artifact unverifiable and reject it; no in-force state is resolved and no cutoff comparison is made.
  3. Resolve the in-force state at the artifact's anchor time from the anchored binding chain (applying rotations, revocations, terminality), before comparing with the cutoff.
  4. If the state is authority_revoked: reject. If it is pre_baseline: verify classically and accept if anchor time < cutoff; otherwise reject.
  5. If the state is in_force and anchor time < cutoff: verify classically; accept.
  6. Otherwise (in_force, anchor time ≥ cutoff): recompute the in-force binding's content-address; check the binding's own anchor and proof-of-possession; verify the PQ companion over the artifact's content-address under the in-force pq_pubkey. Accept only if valid; otherwise reject.

A verifier that cannot complete a step (unreachable anchor proof, unresolvable chain) MUST report the artifact unverifiable, distinct from both accept and reject.

Evidence and decision are separate outputs. A verifier's evidence is one of verified, refuted, or unverifiable; the admission decision (admit / refuse) is a projection of that evidence and the cutoff, never an independently settable value. Where evidence and decision are represented as on-chain enumerations, the zero value MUST be the safe one — unverifiable for evidence and refuse for decision — so that an uninitialized, reverted, or unread path degrades to refuse, unverifiable rather than to a silent admit. verified and admit MUST NOT occupy the zero slot; if they did, the default failure mode would be a yes that nobody decided, which is the exact inversion this ERC exists to prevent.

An unverifiable result MUST carry a reason (REQUIRED, not RECOMMENDED): an unverifiable with no reason is the same shape of defect as a rejection covering two facts. Off-chain the reason is a string; on-chain it MUST be a closed enumeration (for example unreachable_anchor, unresolvable_chain, verifier_unavailable), seeded from the causes an implementation actually distinguishes — free text on-chain is not permitted, and the off-chain string MUST project onto the on-chain enumeration without drift.

Digests inside proof systems

An implementation that binds a 256-bit digest inside a proof system whose scalar field is smaller than 2^256 (for example BN254) MUST carry the digest as raw bytes into the in-circuit hash, not as a single field element.

Rationale


Binding + cutoff, not a second signature. The omission attack is the whole game: any scheme in which the PQ material is optional at verification time protects nothing. The cutoff turns omission into rejection.

Anchor time over signature time. The trustworthy quantity is the one an operator cannot reshape after the fact. Signature timestamps are claims; anchor times are observations.

The anchoring transaction as proof-of-possession. Sending the anchor from the classical address collapses "prove you own the key" and "publish the binding" into one irreversible public fact, removing the last separable signature a forger could work around.

Content-addressing and recomputation. Every object is identified by the hash of its canonical bytes and every verdict is re-derivable from public data. Hashes are the primitive that survives the quantum transition; the design leans the migration entirely on them.

Two families as a structural hedge. In 2026, Straznickas and Weis ("HAWK-n Key Recovery Reduces to SVP in Dimension n/2+1", IACR ePrint 2026/1593) reduced key recovery for HAWK — a lattice-based hash-and-sign candidate in NIST's additional-signatures process — to a shortest-vector problem in half the dimension, lowering the estimated cost for HAWK-512 from 2^150 to 2^108 in a gate-count model, and the HAWK team withdrew the candidate. The result does not affect the finalized standards (different problem, different construction), but the lesson is structural: implementations should pair a finalized standard with a second scheme from a different cryptographic family (e.g. lattice-based ML-DSA alongside hash-based SLH-DSA), so that a break dependent on one family's structure does not transfer to the other.

Pre-baseline artifacts after the cutoff are refused. The cutoff is the consumer's decision, so the rule resolves the in-force state first and only then applies the cutoff. One consequence follows: an agent's legacy artifacts anchored between a consumer's cutoff and that agent's first binding are refused permanently by that consumer, because no binding was in force at their anchor time and so no PQ companion can exist for them. Admitting them instead would let whoever holds the classical key after a break anchor a late genesis binding and have every forged artifact anchored before its activation admitted classical-only. An agent that wants its whole back catalog admitted by a consumer has to anchor its first binding before that consumer's cutoff.

Protocol-layer migration. A post-quantum migration can also be enforced at the protocol layer, where a network-wide fork sets one boundary for every key and consensus verifies the registered keys. This ERC instead lets each consumer set its own cutoff, binds any application or agent identity, anchors to any public timestamped substrate and is verified by recomputation, with no privileged verifier. Keys from stateful hash-based schemes reach a cryptographic end of life when their one-time leaves run out; the stateless ML-DSA and SLH-DSA keys used here have no such bound, so authority ends only through an explicit, anchored revocation, which covers end of life and compromise with one mechanism.

Backwards Compatibility


No existing artifact is invalidated by the cutoff itself: everything proven anchored before a consumer's cutoff remains verifiable classical-only, permanently — unless a governing binding was revoked at or before the artifact's anchor time, which deliberately ends that binding's authority and overrides back-catalogue admission. The cutoff gates only artifacts anchored at or after it, including pre_baseline artifacts, which are admitted only before it; revocation is the single signal that reaches back across it. Consumers adopt independently, on their own schedule, without coordination; an ecosystem-wide flag day is deliberately not required.

Test Cases


Conformance vectors are provided in the assets directory for this proposal: binding-statement vectors (two independent implementations, two NIST families — ML-DSA-65 and SLH-DSA-SHA2-192s — converging on byte-compatible content-addresses), cutoff-enforcement vectors (admit / reject / unverifiable, including in-force resolution across rotation and revocation, with the refuted and unverifiable cases distinguished rather than collapsed), rotation-chain vectors, and revocation vectors. The cutoff set includes explicit boundary vectors at the activation anchor (t == B, in_force) and the revocation anchor (t == R, authority_revoked — inclusive on the revoked side), so that a fencepost error in the half-open in_force interval fails the suite rather than passing quietly. Each vector states public inputs and the expected verdict; conformance is exact reproduction. The normative cutoff set is pq-key-binding-v1.cutoff-vectors.json (profile pq_key_binding.v1/cutoff-enforcement): it distinguishes the states the earlier v0 set collapsed — refuted versus unverifiable evidence, and a pre-baseline back-catalogue artifact (admits classical-only) versus one anchored at or after revocation (refuted even pre-cutoff) — and adds the t == B and t == R boundary cases, plus pre_baseline artifacts on both sides of a cutoff that falls before the baseline (t == C - 1 admitted, t == C refused), a late genesis binding with delayed activation, a successor anchored after a revocation, artifacts whose own anchor is unproven (unverifiable before and after the cutoff), a revoked successor that does not hand authority back to its predecessor, a later revocation that does not reopen an earlier one, and a successor whose activation is earlier than its predecessor's (malformed). A case can declare its own consumer_cutoff, overriding the file's. The v0 cutoff set (pq-key-binding-v0.cutoff-vectors.json) is retained unchanged as the frozen base the v1 profile refines, not as a second conformance target.

The normative conformance file for each facet is:

FacetNormative file
Binding statementpq-key-binding-v0.vectors.json
Cutoff enforcementpq-key-binding-v1.cutoff-vectors.json
Rotationpq-key-binding-v1.rotation-vectors.json, with pq-key-binding-v0.rotation.json
Revocationpq-key-binding-v1.revocation-vectors.json, with pq-key-binding-v0.revocation.json
Canonicalizationpq-key-binding-v1.canonicalization-vectors.json, with pq-key-binding-v1.canonicalization.json
Recovery classesrecovery-classes-vectors.json

The v0 cutoff, rotation and revocation vector sets are kept unchanged as the frozen base the v1 profile refines. The v1 rotation and revocation sets repeat their cases, assert evidence on each, and expect an artifact anchored before the first binding's activation to be pre_baseline, where v0 expected the first binding to govern it. All other files in the assets directory are informative. Where an informative file and this ERC differ, this ERC governs.

Reference Implementation


Two independent production implementations converge on this profile: a Nostr-carried ML-DSA-65 binding anchored via OpenTimestamps→Bitcoin, and an EIP-712-carried SLH-DSA-SHA2-192s binding anchored via an on-chain digest record on Ethereum mainnet, with a live cutoff enforcer implementing the verification procedure (including in-force resolution, rotation, and revocation). Vector suites and an executable reference enforcer accompany the conformance assets, alongside a Solidity consumer that reproduces every published cutoff vector on all four of its fields.

The canonicalization facet's size bound has also been exercised on chain by an independent anchor contract that admits sha256(raw) subject to the size bound and settles canonical-form violations by a bounded fraud proof over a single parser segment and one member-name comparison. That deployment uses a 256-byte segment, under which this profile's 64-byte member-name bound sits. It is not part of this proposal's assets and is not required for conformance.

Security Considerations


  • The omission attack is the primary adversary model; the cutoff rule is its mitigation. Consumers that do not enforce the cutoff gain nothing from the binding's existence — deployment of the consumer rule, not publication of bindings, is what makes the migration operative.
  • Anchor availability is load-bearing: a cutoff evaluated against an unfetchable anchor proof is not publicly evaluable. On-chain anchors are preferable where permissionless readability matters.
  • Recovery authority must not reduce to the secret it replaces. The fleet seed-rotation is anchored by a designated recovery key, proven by its own transaction; compromise of that recovery key is out of scope for this ERC, and the Specification requires implementations to say so (see Recovery classes).
  • Terminality asymmetry (retirement absolute; incident-kill liftable only fleet-level) prevents a compromised per-agent key from resurrecting itself while preserving recoverability from defensive over-reaction.
  • Field-element truncation. A 256-bit digest carried as a single field element in a proof system with a smaller scalar field (e.g. BN254) silently reduces mod the field order, and off-chain and on-chain recomputation diverge. Small test values mask this; real digests trigger it. Digests inside proof systems in the Specification requires raw-byte carriage for this reason.
  • No "quantum-proof" claim. This ERC migrates the signature layer and rests the migration on hash primitives. It makes no claims about other layers (e.g. key-exchange confidentiality of past traffic).

Copyright


Copyright and related rights waived via CC0.