diff options
Diffstat (limited to '07.md')
| -rw-r--r-- | 07.md | 24 |
1 files changed, 9 insertions, 15 deletions
| @@ -18,22 +18,16 @@ 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 | ||
| 27 | ### Recommendation to Extension Authors | ||
| 28 | To make sure that the `window.nostr` is available to nostr clients on page load, the authors who create Chromium and Firefox extensions should load their scripts by specifying `"run_at": "document_end"` in the extension's manifest. | ||
| 29 | |||
| 30 | |||
| 25 | ### Implementation | 31 | ### Implementation |
| 26 | 32 | ||
| 27 | - [horse](https://github.com/fiatjaf/horse) (Chrome and derivatives) | 33 | 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) | ||
| 39 | - [OneKey](https://onekey.so/) (Android, IOS, Chrome and derivatives) | ||