diff options
| author | fiatjaf <fiatjaf@gmail.com> | 2023-01-15 15:37:42 -0300 |
|---|---|---|
| committer | fiatjaf <fiatjaf@gmail.com> | 2023-01-15 15:37:42 -0300 |
| commit | 230f63dd5fb1e0d3465c6962ffafbc7fa29e4983 (patch) | |
| tree | cee188f2a250216f710e221d224ba041c8499f7d /07.md | |
| parent | f0842438c149be4834010540a30a4bdea7bee81e (diff) | |
nip-07 extensions to also add .id and .pubkey when signing.
Diffstat (limited to '07.md')
| -rw-r--r-- | 07.md | 2 |
1 files changed, 1 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 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: |