Unlock Freighter with biometrics (passkey + WebAuthn PRF)

Open
#3,066 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript, web-dev

Research direction

Start by locating the Settings flow, keystore unlock and password reset or wallet removal paths in the extension. Check whether the extension's WebAuthn implementation supports the PRF extension on target devices, and trace how the popup, side panel and full tab handle unlock prompts. Done means biometric setup and unlock work with password fallback, cleanup runs on password reset or wallet removal, and the security review is complete.

Written by the indexing model from the issue text.

Description

Summary

Let users unlock Freighter with a fingerprint or face (Touch ID, Windows Hello, etc.) instead of typing their password every time.

Proposed approach

Use a passkey (WebAuthn) created by the extension, with the PRF extension.

  • Setup: The user turns on biometric unlock in Settings and enters their password. Freighter creates a passkey and gets a secret from it (PRF output). Freighter uses this secret to encrypt the key that unlocks the keystore, and saves the encrypted copy.
  • Unlock: Freighter asks for the passkey. The OS shows the biometric prompt. If it passes, Freighter gets the same secret back, decrypts the key, and unlocks.
  • The password stays the main unlock method and is always available as a fallback.

Nothing that can unlock the wallet is stored in a readable form. Without the biometric check, the saved data is useless.

Notes

  • Only offer the feature if the device supports PRF. Check this during setup.
  • The OS prompt may close the popup. We may need to run the unlock in the side panel or a full tab.
  • Remove the biometric setup when the password is reset or the wallet is removed.
  • This adds a new way to reach the keys, so it needs a security review.
Dominant language
TypeScript
Stars
122
Forks
62
Avg merge
4d 19h
Merged PRs (30d)
41

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stellar/freighter

All issues in stellar/freighter

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.