ERC-8804 Cryptographic Capability Declaration

A post quantum migration happens contract by contract, and nothing today lets a reader learn where a given contract stands. A wallet about to send value cannot tell whether an account still authenticates with an elliptic curve signature. A tool reporting a protocol’s readiness cannot count which of its contracts have moved. A counterparty that only wants to interact with a quantum secure account has no way to check.

The schemes are already named by a single byte in ERC-8801 for signatures and ERC-8803 for encryption. What is missing is a standard way for a contract to declare which bytes it uses and whether they are post quantum, so the state of a migration is a value a reader reads rather than a fact a reader infers. This is the cryptographic equivalent of the interface declaration in ERC-165, applied to the algorithms a contract depends on.

What the draft specifies

  • A conforming contract implements ERC-165 and two views, cryptographicSchemes which returns the scheme bytes the contract uses, and isPostQuantum which returns whether they are all post quantum.
  • The byte 0x00 is reserved for a classical scheme, so a contract mid migration declares that it is not yet fully moved without enumerating curves.
  • The declaration is a claim a contract makes about itself and is not a proof, so a reader that requires a guarantee still verifies a post quantum signature or encrypts to a post quantum key.

Reference material

Open questions

  • The ERC-165 interface identifier a reader checks first.
  • How a wallet and an indexer consume the declaration at scale.

This completes a set with ERC-8801, ERC-8802 and ERC-8803, and gives the discovery layer over them.