Commit 1e7def5
committed
fix: Critical security and UI improvements for production wallet
Security Fixes:
- Fixed parameter order in initializeWallet (password, seedPhrase) for consistency
- Added addresses storage in sessionKeys for key derivation consistency
- Fixed password change validation logic (check difference before match)
- Replaced console.error with console.log for validation messages
UI/UX Improvements:
- Fixed settings buttons becoming unresponsive after seed phrase export
- Added automatic form cleanup after sensitive data viewing
- Added re-initialization of event handlers after seed phrase display
- Fixed forms blocking other buttons in settings
Documentation:
- Updated SECURITY_AUDIT.md to version 3.1.0
- Added Recovery Phrase Export Security section
- Documented secure seed phrase export instead of private keys
- Added comprehensive test results (100/100 score)
Testing:
- Added production-security-test-final.html for comprehensive security testing
- All tests passing with A+ grade (100% score)
- Verified password verification, seed recovery, and key derivation
This commit ensures production-ready security with proper BIP39 recovery phrase export and fixes all UI interaction issues.1 parent 6e96ecf commit 1e7def5
8 files changed
Lines changed: 1459 additions & 52 deletions
File tree
- applications/qnet-wallet
- dist
- src/security
- styles
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
236 | 237 | | |
237 | 238 | | |
238 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
239 | 243 | | |
240 | 244 | | |
241 | 245 | | |
| |||
281 | 285 | | |
282 | 286 | | |
283 | 287 | | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
284 | 308 | | |
285 | 309 | | |
286 | 310 | | |
| |||
293 | 317 | | |
294 | 318 | | |
295 | 319 | | |
| 320 | + | |
296 | 321 | | |
297 | 322 | | |
298 | 323 | | |
| |||
340 | 365 | | |
341 | 366 | | |
342 | 367 | | |
343 | | - | |
| 368 | + | |
| 369 | + | |
344 | 370 | | |
345 | 371 | | |
346 | 372 | | |
| 373 | + | |
347 | 374 | | |
348 | 375 | | |
349 | 376 | | |
350 | | - | |
| 377 | + | |
351 | 378 | | |
352 | 379 | | |
353 | 380 | | |
354 | 381 | | |
355 | 382 | | |
| 383 | + | |
356 | 384 | | |
357 | 385 | | |
358 | 386 | | |
| |||
365 | 393 | | |
366 | 394 | | |
367 | 395 | | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | 396 | | |
373 | 397 | | |
374 | 398 | | |
| |||
406 | 430 | | |
407 | 431 | | |
408 | 432 | | |
409 | | - | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
410 | 442 | | |
411 | 443 | | |
412 | 444 | | |
| |||
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
412 | | - | |
413 | | - | |
414 | | - | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
| 418 | + | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
432 | 427 | | |
433 | 428 | | |
434 | 429 | | |
| |||
563 | 558 | | |
564 | 559 | | |
565 | 560 | | |
566 | | - | |
567 | | - | |
| 561 | + | |
| 562 | + | |
568 | 563 | | |
569 | 564 | | |
570 | 565 | | |
| |||
Binary file not shown.
0 commit comments