diff options
| author | Semisol <45574030+Semisol@users.noreply.github.com> | 2023-11-19 01:45:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-19 01:45:41 +0100 |
| commit | da19c078ab892b578a5c35968443205c9e8ac27f (patch) | |
| tree | 17a9f4f3105acdae234d3bc67e42571aed261fa2 /07.md | |
| parent | 4d709d1804de45bab3739ce814d4b0c0b211c273 (diff) | |
| parent | 5dcfe85306434f21ecb1e7a47edd92b2e3e64f9a (diff) | |
Merge branch 'master' into clarify-json-serialization
Diffstat (limited to '07.md')
| -rw-r--r-- | 07.md | 7 |
1 files changed, 5 insertions, 2 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 | ||
| @@ -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, adds `id`, `pubkey` and `sig` and returns it | 15 | async window.nostr.signEvent(event: { created_at: number, kind: number, tags: string[][], content: string }): 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: |
| @@ -33,3 +33,6 @@ async window.nostr.nip04.decrypt(pubkey, ciphertext): string // takes ciphertext | |||
| 33 | - [AKA Profiles](https://github.com/neilck/aka-extension) (Chrome, stores multiple keys) | 33 | - [AKA Profiles](https://github.com/neilck/aka-extension) (Chrome, stores multiple keys) |
| 34 | - [TokenPocket](https://www.tokenpocket.pro/) (Android, IOS, Chrome and derivatives) | 34 | - [TokenPocket](https://www.tokenpocket.pro/) (Android, IOS, Chrome and derivatives) |
| 35 | - [Nostrmo](https://github.com/haorendashu/nostrmo_faq#download) (Android, IOS) | 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) | ||