Skip to content

Commit

Permalink
NIP-07: add NIP-44 calls
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgleason committed Feb 20, 2024
1 parent 36d2281 commit 71b0cbc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 07.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ 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 ciphertext and iv as specified in nip-44
async window.nostr.nip44.decrypt(pubkey, ciphertext): string // takes ciphertext and iv as specified in nip-44
```

### Implementation
Expand Down

0 comments on commit 71b0cbc

Please sign in to comment.