Skip to content

Commit

Permalink
Clarify Unsigned Event Object type
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeobank authored and fiatjaf committed Oct 21, 2023
1 parent 4216f0b commit ca73c5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 07.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.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:
Expand Down

0 comments on commit ca73c5d

Please sign in to comment.