diff --git a/CONTEXT.md b/CONTEXT.md index 45bc9c0..1e61472 100644 --- a/CONTEXT.md +++ b/CONTEXT.md @@ -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