diff options
| author | Jon Staab <jstaab@protonmail.com> | 2023-05-12 05:10:45 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-12 05:10:45 -0700 |
| commit | e5302f84c74cf42d878a3ed18257a16bc0d3b748 (patch) | |
| tree | b1a3ad9c0317bf7c38f34c500559b66ff7c0a22d /07.md | |
| parent | 1c728516dfdc7508ce27eda222bde78466e3457d (diff) | |
| parent | 4208652dc7a39c63c39559b13c656ec30400fcba (diff) | |
Merge branch 'master' into patch-1
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) | ||