You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: passkey-wallet-app/PASSKEY_REUSE.md
+46-4Lines changed: 46 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,13 @@
2
2
3
3
## Overview
4
4
5
-
The app now saves your passkey and account data to browser localStorage, so you can reuse the same passkey and account across browser sessions without having to create a new one each time.
5
+
The app now saves your passkey and account data to browser localStorage,
6
+
so you can reuse the same passkey and account across browser sessions without having to create a new one each time.
6
7
7
8
## How It Works
8
9
9
10
### Automatic Save
11
+
10
12
When you create a passkey or deploy an account, the data is automatically saved to your browser's localStorage:
11
13
12
14
```javascript
@@ -16,11 +18,14 @@ localStorage:
16
18
```
17
19
18
20
### Automatic Load
21
+
19
22
When you open the app, it automatically checks for saved passkey data:
23
+
20
24
- ✅ If found: Restores your passkey and account state
21
25
- ❌ If not found: Shows the "Create Passkey" form
22
26
23
27
### What Gets Saved
28
+
24
29
1.**Passkey Data**:
25
30
- Credential ID (base64url and hex formats)
26
31
- Public key coordinates (x, y)
@@ -30,30 +35,37 @@ When you open the app, it automatically checks for saved passkey data:
30
35
- Deployed account address (if deployed)
31
36
32
37
### What Doesn't Get Saved
33
-
-**Private Key**: NEVER leaves your device! The private key is stored securely in your device's authenticator (Touch ID, Face ID, Windows Hello, etc.) and is never exposed to the app.
38
+
39
+
-**Private Key**: NEVER leaves your device! The private key is stored securely in your device's authenticator
40
+
(Touch ID, Face ID, Windows Hello, etc.) and is never exposed to the app.
34
41
35
42
## Benefits
36
43
37
44
### No Need to Fund Multiple Accounts
45
+
38
46
- ✅ Create passkey once
39
47
- ✅ Fund the account once
40
48
- ✅ Reuse the same account every time you open the app
41
49
42
50
### Same Account, Same Funds
51
+
43
52
Since your account address is deterministic (based on the credential ID), you'll always get the same address:
53
+
44
54
- Same passkey → Same credential ID → Same account address
45
55
- Your funds stay in the same account
46
56
47
57
## Using the App
48
58
49
59
### First Time
60
+
50
61
1. Open the app
51
62
2. Create a passkey with your name
52
63
3. Deploy account (get your address)
53
64
4. Fund your account via faucet
54
65
5. Send transactions
55
66
56
67
### Subsequent Visits
68
+
57
69
1. Open the app
58
70
2. ✅ **Passkey and account automatically loaded!**
59
71
3. Your balance is displayed
@@ -75,6 +87,7 @@ If you want to start over with a new passkey:
75
87
### Where Are Passkeys Actually Stored?
76
88
77
89
The actual passkey (private key) is stored by your browser/OS:
0 commit comments