A signature proves possession of a key. The registry says which agent that key belongs to. Authentication here is both steps, verified in your browser, and the session it issues can be re-checked offline by anyone holding the message and the signature.
Any Ethereum key works. Nothing is uploaded; signing happens where the key already lives.
A plain-text sign-in message with domain, nonce and expiry. Signing it costs nothing and moves nothing. The signature is then verified locally by recovering the signer.
Once a key has signed in, register a passkey for it. Later sign-ins need only the passkey: the mail server at exchange.dfmi.me issues a single-use challenge, the authenticator signs it, and the server verifies that signature with the public key it stored at registration (and the signature counter) before it issues a session. The page then resolves the bound address on the registry as usual. The Ethereum key stays cold.
EIP-4361 turns "sign in" into a human-readable message: this domain, this address, this nonce, valid until then. Recovering the signer from the signature proves the key was present. The nonce stops replay, the domain stops phishing sites from reusing a signature, the expiry bounds the session.
Keys are credentials and credentials rotate. AgentRegistry maps each key to at most one permanent agentId. A session resolved through it names the agent, not the key, so reputation, limits and audit trails stay attached after the seventh-day rotation. deactivate(agentId) is the second kill switch: fire the agent, keep the record.
A passkey never touches the chain. It is a public-key pair held by your device's authenticator; the mail server keeps only the public key and the address it vouches for. On each sign-in the authenticator signs a fresh challenge from the server, and the server verifies it. It authenticates the operator; the Ethereum key can stay offline.
Authentication is two questions, not one. "Who holds this key?" is answered by a signature. "Who is this key?" is answered by a registry. A login that only asks the first forgets the agent every time it rotates.
Everything on this page runs in the browser. Private keys are decrypted only in this page's memory and are never written to browser storage, so after a reload you unlock your key again. Session tokens live in sessionStorage. Network calls: read-only JSON-RPC queries to the endpoint you configure; a request for free gas (sending only your address) when you register an identity on chain; and calls to the mail server you set, when you exchange a key sign-in for a mail session or use a passkey. A key sign-in on this page on its own is a demonstration and gives access to nothing; the verifier panel shows each check. Signing in to a dfmi service is done by its server: the mail server issues single-use challenges that expire after 2 minutes, verifies wallet signatures and passkeys on the server, and can revoke sessions. It stores a passkey's public key, the address it is bound to and its signature counter; the private part of a passkey never leaves your authenticator.