nip-07 extensions to also add .id and .pubkey when signing.

This commit is contained in:
fiatjaf 2023-01-15 15:37:42 -03:00
parent f0842438c1
commit 230f63dd5f
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1

2
07.md
View File

@ -12,7 +12,7 @@ That object must define the following methods:
``` ```
async window.nostr.getPublicKey(): string // returns a public key as hex async window.nostr.getPublicKey(): string // returns a public key as hex
async window.nostr.signEvent(event: Event): Event // takes an event object and returns it with the `sig` async window.nostr.signEvent(event: Event): Event // takes an event object, adds `id`, `pubkey` and `sig` and returns it
``` ```
Aside from these two basic above, the following functions can also be implemented optionally: Aside from these two basic above, the following functions can also be implemented optionally: