Clarify signer usage

This commit is contained in:
Alex Gleason 2025-06-01 11:57:37 -05:00
parent aa1e2145d0
commit 03f804ed90
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

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 ### 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 ```ts
// Get the current user // Get the current user