From 03f804ed9034cdc65d3087ba991273b805dfe359 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 1 Jun 2025 11:57:37 -0500 Subject: [PATCH] Clarify signer usage --- CONTEXT.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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