diff options
Diffstat (limited to '07.md')
| -rw-r--r-- | 07.md | 11 |
1 files changed, 7 insertions, 4 deletions
| @@ -12,7 +12,7 @@ That object must define the following methods: | |||
| 12 | 12 | ||
| 13 | ``` | 13 | ``` |
| 14 | async window.nostr.getPublicKey(): string // returns a public key as hex | 14 | async window.nostr.getPublicKey(): string // returns a public key as hex |
| 15 | async window.nostr.signEvent(event: Event): Event // takes an event object and returns it with the `sig` | 15 | async window.nostr.signEvent(event: Event): Event // takes an event object, adds `id`, `pubkey` and `sig` and returns it |
| 16 | ``` | 16 | ``` |
| 17 | 17 | ||
| 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: |
| @@ -24,6 +24,9 @@ async window.nostr.nip04.decrypt(pubkey, ciphertext): string // takes ciphertext | |||
| 24 | 24 | ||
| 25 | ### Implementation | 25 | ### Implementation |
| 26 | 26 | ||
| 27 | - [nos2x](https://github.com/fiatjaf/nos2x) is available as a Chromium extension that provides such capabilities. | 27 | - [horse](https://github.com/fiatjaf/horse) (Chrome and derivatives) |
| 28 | - [Alby](https://getalby.com) is a Bitcoin extension that also provides a compatible `window.nostr`. | 28 | - [nos2x](https://github.com/fiatjaf/nos2x) (Chrome and derivatives) |
| 29 | - [Blockcore](https://www.blockcore.net/wallet) | 29 | - [Alby](https://getalby.com) (Chrome and derivatives, Firefox, Safari) |
| 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) | ||