Clarify signer usage

This commit is contained in:
Alex Gleason committed 2025-06-01 11:57:37 -05:00
1 parent aa1e2145d0
commit 03f804ed90
1 file changed
+1 -1
+1 -1
View File
@@ -341,7 +341,7 @@ To attach files to kind 1 events, each file's URL should be appended to the even
### Nostr Encryption and Decryption
The logged-in user has a `signer` object (matching the NIP-07 signer interface) that can be used for encryption and decryption.
The logged-in user has a `signer` object (matching the NIP-07 signer interface) that can be used for encryption and decryption. The signer's nip44 methods handle all cryptographic operations internally, including key derivation and conversation key management, so you never need direct access to private keys. Always use the signer interface for encryption rather than requesting private keys from users, as this maintains security and follows best practices.
```ts
// Get the current user