chore: add comments
This commit is contained in:
parent
92b62a3cbe
commit
29654a9b91
@ -378,6 +378,13 @@ export class NostrController extends EventEmitter {
|
|||||||
throw new Error('Login method is undefined')
|
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) => {
|
nip04Decrypt = async (sender: string, content: string) => {
|
||||||
const loginMethod = (store.getState().auth as AuthState).loginMethod
|
const loginMethod = (store.getState().auth as AuthState).loginMethod
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user