diff --git a/07.md b/07.md index 661144e6..f2a25cff 100644 --- a/07.md +++ b/07.md @@ -20,7 +20,7 @@ Aside from these two basic above, the following functions can also be implemente async window.nostr.getRelays(): { [url: string]: {read: boolean, write: boolean} } // returns a basic map of relay urls to relay policies async window.nostr.nip04.encrypt(pubkey, plaintext): string // returns ciphertext and iv as specified in nip-04 (deprecated) async window.nostr.nip04.decrypt(pubkey, ciphertext): string // takes ciphertext and iv as specified in nip-04 (deprecated) -async window.nostr.nip44.encrypt(pubkey, plaintext): string // returns encrypted payload as specified in nip-44 +async window.nostr.nip44.encrypt(pubkey, plaintext, v): string // returns encrypted payload as specified in nip-44 async window.nostr.nip44.decrypt(pubkey, ciphertext): string // takes encrypted payload as specified in nip-44 ``` diff --git a/46.md b/46.md index 06a26895..06846db8 100644 --- a/46.md +++ b/46.md @@ -89,7 +89,7 @@ These are mandatory methods the remote signer app MUST implement: - params [`pubkey`, `nip4 ciphertext`] - result [`plaintext`] - **nip44_encrypt** - - params [`pubkey`, `plaintext`] + - params [`pubkey`, `plaintext`, `v`] - result `nip44 encrypted payload` - **nip44_decrypt** - params [`pubkey`, `nip44 encrypted payload`]