mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2025-08-27 13:09:22 +00:00
Clarify signer usage
This commit is contained in:
parent
aa1e2145d0
commit
03f804ed90
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user