Skip to content

fix(prf): guarantee deterministic passkey reconnect, single approval_url, retryable wallet_key & Arkade deprecated signer scan - #20

Merged
eminogrande merged 1 commit into
mainfrom
fix/passkey-reconnect-determinism
Nov 19, 2026
Merged

eminogrande merged 1 commit into
mainfrom
fix/passkey-reconnect-determinism

Conversation

@eminogrande

Copy link
Copy Markdown
Contributor

Fixes Passkey reconnect determinism and duplicate-passkey UX trap on wallet.nuri.com:

  • Stop returning create_url ahead of approval_url (and remove RAM-only createUrlByRequest Map): users open approval_url to sign in with their existing Passkey (new users click "Create Passkey" on that same page in connect.nuri.com)
  • Make all 9 custody fields immutable per (cred_id_b64u, slot_index) in finalizeGrantWallet (throw wallet_custody_mismatch instead of silently overwriting funded Safe / AAD)
  • Keep issued_wallet_key_sealed readable on repeated polls of the same approved request_id until session expires_at
  • Sweep pending Lightning receives immediately on reconnect balance read
  • Scan info.deprecatedSigners in listSpendableVtxos so ASP signer rotation never hides balance
  • Add regression tests in check-prf-arkade-v2.mjs and check-cross-rail-v2.mjs

Deploy order: merge & deploy nuri-agent-cosigner#2 and nuri-connect first (so /signature/<id> includes the secondary Create Passkey link and durable DO pubkey lookup), then merge & deploy this PR.

@eminogrande
eminogrande merged commit 50aea20 into main Nov 19, 2026
1 check passed
@eminogrande
eminogrande deleted the fix/passkey-reconnect-determinism branch November 19, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant