mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 16:35:52 -05:00
Add version param to 07 and 46
This commit is contained in:
parent
94330ffb10
commit
e2eeda5200
2
07.md
2
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.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
2
46.md
|
@ -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`]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user