diff options
Diffstat (limited to '07.md')
| -rw-r--r-- | 07.md | 21 |
1 files changed, 6 insertions, 15 deletions
| @@ -4,7 +4,7 @@ NIP-07 | |||
| 4 | `window.nostr` capability for web browsers | 4 | `window.nostr` capability for web browsers |
| 5 | ------------------------------------------ | 5 | ------------------------------------------ |
| 6 | 6 | ||
| 7 | `draft` `optional` `author:fiatjaf` | 7 | `draft` `optional` |
| 8 | 8 | ||
| 9 | The `window.nostr` object may be made available by web browsers or extensions and websites or web-apps may make use of it after checking its availability. | 9 | The `window.nostr` object may be made available by web browsers or extensions and websites or web-apps may make use of it after checking its availability. |
| 10 | 10 | ||
| @@ -18,21 +18,12 @@ async window.nostr.signEvent(event: { created_at: number, kind: number, tags: st | |||
| 18 | Aside from these two basic above, the following functions can also be implemented optionally: | 18 | Aside from these two basic above, the following functions can also be implemented optionally: |
| 19 | ``` | 19 | ``` |
| 20 | async window.nostr.getRelays(): { [url: string]: {read: boolean, write: boolean} } // returns a basic map of relay urls to relay policies | 20 | async window.nostr.getRelays(): { [url: string]: {read: boolean, write: boolean} } // returns a basic map of relay urls to relay policies |
| 21 | async window.nostr.nip04.encrypt(pubkey, plaintext): string // returns ciphertext and iv as specified in nip-04 | 21 | async window.nostr.nip04.encrypt(pubkey, plaintext): string // returns ciphertext and iv as specified in nip-04 (deprecated) |
| 22 | async window.nostr.nip04.decrypt(pubkey, ciphertext): string // takes ciphertext and iv as specified in nip-04 | 22 | async window.nostr.nip04.decrypt(pubkey, ciphertext): string // takes ciphertext and iv as specified in nip-04 (deprecated) |
| 23 | async window.nostr.nip44.encrypt(pubkey, plaintext): string // returns ciphertext as specified in nip-44 | ||
| 24 | async window.nostr.nip44.decrypt(pubkey, ciphertext): string // takes ciphertext as specified in nip-44 | ||
| 23 | ``` | 25 | ``` |
| 24 | 26 | ||
| 25 | ### Implementation | 27 | ### Implementation |
| 26 | 28 | ||
| 27 | - [horse](https://github.com/fiatjaf/horse) (Chrome and derivatives) | 29 | See https://github.com/aljazceru/awesome-nostr#nip-07-browser-extensions. |
| 28 | - [nos2x](https://github.com/fiatjaf/nos2x) (Chrome and derivatives) | ||
| 29 | - [Alby](https://getalby.com) (Chrome and derivatives, Firefox) | ||
| 30 | - [Blockcore](https://www.blockcore.net/wallet) (Chrome and derivatives) | ||
| 31 | - [nos2x-fox](https://diegogurpegui.com/nos2x-fox/) (Firefox) | ||
| 32 | - [Flamingo](https://www.getflamingo.org/) (Chrome and derivatives) | ||
| 33 | - [AKA Profiles](https://github.com/neilck/aka-extension) (Chrome, stores multiple keys) | ||
| 34 | - [TokenPocket](https://www.tokenpocket.pro/) (Android, IOS, Chrome and derivatives) | ||
| 35 | - [Nostrmo](https://github.com/haorendashu/nostrmo_faq#download) (Android, IOS) | ||
| 36 | - [Spring Browser](https://spring.site) (Android) | ||
| 37 | - [nodestr](https://github.com/lightning-digital-entertainment/nodestr) (NodeJS polyfill) | ||
| 38 | - [Nostore](https://apps.apple.com/us/app/nostore/id1666553677) (Safari on iOS/MacOS) | ||