nip04.decrypt
async function nip04.decrypt(pubkey: string, message: string): string;const message = "Secret message";
const encrypted = await window.nostr.nip04.encrypt(pubkey, message);
const decrypted = await window.nostr.nip04.decrypt(pubkey, encrypted); // Secret messageLast updated
Was this helpful?

