Clarify Unsigned Event Object type

This commit is contained in:
Mike O'Bank 2023-10-20 22:56:29 +02:00 committed by fiatjaf_
parent 4216f0bf2f
commit ca73c5dd5e

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, adds `id`, `pubkey` and `sig` and returns it 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
``` ```
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: