diff options
| author | Pablo Fernandez <p@f7z.io> | 2023-10-29 11:43:19 +0100 |
|---|---|---|
| committer | Pablo Fernandez <p@f7z.io> | 2023-10-29 11:43:19 +0100 |
| commit | c88a620fe7049d86c867a0087d4b5257a8891634 (patch) | |
| tree | 36be7506269603af70ce0ea5a01245e04c7c27d0 /07.md | |
| parent | a482f47ae4c36d38062cd0fd3ee6235e57691673 (diff) | |
| parent | ca73c5dd5ea19dec29a2781f1d3bd93ef95985f9 (diff) | |
Merge branch 'master' into vending-machine
Diffstat (limited to '07.md')
| -rw-r--r-- | 07.md | 3 |
1 files changed, 2 insertions, 1 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, 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: |
| @@ -34,3 +34,4 @@ async window.nostr.nip04.decrypt(pubkey, ciphertext): string // takes ciphertext | |||
| 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) | 36 | - [Spring Browser](https://spring.site) (Android) |
| 37 | - [nodestr](https://github.com/lightning-digital-entertainment/nodestr) (NodeJS polyfill) | ||