diff --git a/07.md b/07.md index 9f836d87a..3b72c925c 100644 --- a/07.md +++ b/07.md @@ -11,7 +11,7 @@ The `window.nostr` object may be made available by web browsers or extensions an That object must define the following methods: ``` -async window.nostr.getPublicKey(): string // returns a public key as hex +async window.nostr.getPublicKey({optional: bool}): string // returns a public key as hex. If optional is true, don't show popup to user, return pubkey only if permission had been already granted, null otherwise. 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 ```