From 4216f0bf2f73b4a395568b6874132aca94f55094 Mon Sep 17 00:00:00 2001 From: Egge Date: Thu, 19 Oct 2023 14:27:56 +0200 Subject: added nodestr --- 07.md | 1 + 1 file changed, 1 insertion(+) (limited to '07.md') diff --git a/07.md b/07.md index 0c8c402..a9b6b34 100644 --- a/07.md +++ b/07.md @@ -34,3 +34,4 @@ async window.nostr.nip04.decrypt(pubkey, ciphertext): string // takes ciphertext - [TokenPocket](https://www.tokenpocket.pro/) (Android, IOS, Chrome and derivatives) - [Nostrmo](https://github.com/haorendashu/nostrmo_faq#download) (Android, IOS) - [Spring Browser](https://spring.site) (Android) +- [nodestr](https://github.com/lightning-digital-entertainment/nodestr) (NodeJS polyfill) -- cgit v1.2.3 From ca73c5dd5ea19dec29a2781f1d3bd93ef95985f9 Mon Sep 17 00:00:00 2001 From: Mike O'Bank <111360219+mikeobank@users.noreply.github.com> Date: Fri, 20 Oct 2023 22:56:29 +0200 Subject: Clarify Unsigned Event Object type --- 07.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '07.md') diff --git a/07.md b/07.md index a9b6b34..24d8d45 100644 --- a/07.md +++ b/07.md @@ -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: -- cgit v1.2.3