chore: add comments

This commit is contained in:
SwiftHawk 2024-06-13 14:58:54 +05:00
parent 92b62a3cbe
commit 29654a9b91

View File

@ -378,6 +378,13 @@ export class NostrController extends EventEmitter {
throw new Error('Login method is undefined')
}
/**
* Decrypts a given content based on the current login method.
*
* @param sender - The sender's public key.
* @param content - The encrypted content to decrypt.
* @returns A promise that resolves to the decrypted content.
*/
nip04Decrypt = async (sender: string, content: string) => {
const loginMethod = (store.getState().auth as AuthState).loginMethod