A page talking to your wallet, directly

SPEC.md §3.8 — window.atlasWallet, no spatial world required.

Every other demo on this domain is either a spatial world (needs the extension to enter something) or a credential demo that generates its own throwaway key right here in the page (needs no extension at all). This one is different: this ordinary page script asks your real wallet — the one the extension already manages — a question, a signature, and finally offers it something to keep, all gated by this domain's own manifest and by you, on a prompt this page can't draw over or fake the contents of.

What this domain actually declared

This domain's manifest carries a policy.walletBridge field — { read: true, sign: ["demo-login"], offer: ["atlas.wearable.ring"] } — with no <link rel="spatial"> tag on this page, so that's the domain-wide default every page here gets. A page asking for anything outside that (a different signing purpose, a different asset class) is refused immediately, no prompt shown at all — try it from this page's console if you like, nothing here hides that behavior.

Step 1 — is a wallet identity active right now?

Step 2 — ask it to sign something

A fresh, disposable payload — a nonce and a timestamp, nothing this page could reuse for anything else — sent for your wallet's own trusted confirmation prompt to show verbatim before it ever signs, every single time, never cached.

Step 3 — offer you something to keep

As soon as Step 1 finds your identity, this domain mints a real, signed atlas.wearable.ring credential to your own public key and shows it below as a card. Hover the card and your wallet's own Previewer opens in the corner you docked it in, drawn by the extension, not by this page — so you can look the ring over before deciding anything. The button then hands it to your wallet bridge. Approving the prompt does not put it in your wallet yet — it only queues into your own sandboxed Pending offers (wallet's Mail tab), where you can Preview it again, then separately Claim or Dismiss it. Check the prompt's trust box and this domain skips asking next time, for this class, straight into your wallet.

Nothing above is stored by this page. Step 1 and Step 2 never leave your wallet's own extension process except as the two values shown; Step 3's credential is a genuine signed object anyone could verify independently the same way the credential demo already shows. Back to the workshop.