Commit 01ba3c8
authored
fix(nip46): use getPublicKey() in nostrconnect flow to get actual user pubkey (#374)
The nostrconnect:// flow was incorrectly using response.event.pubkey as the
userPubkey, but that's actually the bunker's pubkey (the one signing the
NIP-46 response event).
This fix aligns the nostrconnect flow with the bunker:// flow, which correctly
calls getPublicKey() to retrieve the actual user's pubkey from the remote signer.
Fixes #3731 parent 49eceed commit 01ba3c8
1 file changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
230 | | - | |
| 229 | + | |
231 | 230 | | |
232 | 231 | | |
233 | 232 | | |
234 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
235 | 240 | | |
236 | 241 | | |
237 | 242 | | |
| |||
0 commit comments