Nicolas Cantu
d7a04dd8f8
Fix nsec import validation for Uint8Array data
...
**Motivations:**
- Fix import error when importing nsec private keys
- Support both string and Uint8Array formats from nip19.decode
**Root causes:**
- nip19.decode returns decoded.data as Uint8Array, not string
- Validation in KeyManagementManager only checked for string type
- importPrivateKey in keyManagement.ts only handled string type
**Correctifs:**
- Updated KeyManagementManager validation to accept Uint8Array
- Updated importPrivateKey to convert Uint8Array to hex using bytesToHex
- Improved error messages to show actual validation errors
**Evolutions:**
- None
**Pages affectées:**
- components/KeyManagementManager.tsx
- lib/keyManagement.ts
2026-01-05 22:38:21 +01:00
..
2025-12-23 02:20:57 +01:00
2025-12-22 17:56:00 +01:00
2025-12-28 20:35:50 +01:00
2025-12-27 21:11:09 +01:00
2025-12-27 22:26:13 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 22:56:34 +01:00
2025-12-28 22:56:34 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 22:56:34 +01:00
2025-12-28 22:38:34 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2026-01-05 21:56:09 +01:00
2025-12-28 22:56:34 +01:00
2025-12-28 22:38:34 +01:00
2025-12-22 09:48:57 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-22 17:56:00 +01:00
2026-01-05 22:38:21 +01:00
2025-12-28 22:38:34 +01:00
2025-12-28 22:38:34 +01:00
2025-12-28 22:38:34 +01:00
2025-12-28 22:38:34 +01:00
2025-12-27 21:25:19 +01:00
2025-12-28 21:49:19 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-27 21:25:19 +01:00
2026-01-05 22:07:11 +01:00
2026-01-05 22:14:01 +01:00
2025-12-28 22:56:34 +01:00
2025-12-28 22:38:34 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 22:56:34 +01:00
2025-12-28 21:49:19 +01:00
2025-12-28 22:56:34 +01:00
2025-12-23 02:20:57 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 22:56:34 +01:00
2025-12-28 22:56:34 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 22:56:34 +01:00
2025-12-27 21:25:19 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 22:56:34 +01:00
2025-12-28 21:49:19 +01:00
2025-12-28 22:56:34 +01:00
2025-12-28 20:35:50 +01:00
2025-12-22 17:56:00 +01:00
2025-12-23 02:20:57 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 22:56:34 +01:00
2025-12-28 22:56:34 +01:00
2025-12-23 02:20:57 +01:00
2025-12-28 22:56:34 +01:00
2025-12-28 22:56:34 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 20:35:50 +01:00
2025-12-28 21:49:19 +01:00
2025-12-28 22:56:34 +01:00
2025-12-28 21:49:19 +01:00