Skip to content

Commit

Permalink
Merge pull request #1063 from alexgleason/nip07-nip44
Browse files Browse the repository at this point in the history
NIP-07: add NIP-44 calls
  • Loading branch information
vitorpamplona authored Feb 21, 2024
2 parents 44c678b + 2390058 commit cbee109
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 as specified in nip-44
async window.nostr.nip44.decrypt(pubkey, ciphertext): string // takes ciphertext as specified in nip-44
```

### Implementation
Expand Down

0 comments on commit cbee109

Please sign in to comment.