Add version param to 07 and 46

This commit is contained in:
Jonathan Staab 2023-08-11 17:37:29 -07:00
parent 94330ffb10
commit e2eeda5200
2 changed files with 2 additions and 2 deletions

2
07.md
View File

@ -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.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.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.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 async window.nostr.nip44.decrypt(pubkey, ciphertext): string // takes encrypted payload as specified in nip-44
``` ```

2
46.md
View File

@ -89,7 +89,7 @@ These are mandatory methods the remote signer app MUST implement:
- params [`pubkey`, `nip4 ciphertext`] - params [`pubkey`, `nip4 ciphertext`]
- result [`plaintext`] - result [`plaintext`]
- **nip44_encrypt** - **nip44_encrypt**
- params [`pubkey`, `plaintext`] - params [`pubkey`, `plaintext`, `v`]
- result `nip44 encrypted payload` - result `nip44 encrypted payload`
- **nip44_decrypt** - **nip44_decrypt**
- params [`pubkey`, `nip44 encrypted payload`] - params [`pubkey`, `nip44 encrypted payload`]