diff options
| -rw-r--r-- | 07.md | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -13,6 +13,9 @@ That object must define the following methods: | |||
| 13 | ``` | 13 | ``` |
| 14 | async window.nostr.getPublicKey(): string // returns a public key as hex | 14 | async window.nostr.getPublicKey(): string // returns a public key as hex |
| 15 | async window.nostr.signEvent(event: Event): Event // takes an event object and returns it with the `sig` | 15 | async window.nostr.signEvent(event: Event): Event // takes an event object and returns it with the `sig` |
| 16 | async window.nostr.getRelays(): { [url: string]: {read: boolean, write: boolean} } // returns a map of relay urls to relay policies | ||
| 17 | async window.nostr.nip04.encrypt(pubkey, plaintext): string // returns ciphertext+iv as specified in nip-04 | ||
| 18 | async window.nostr.nip04.decrypt(pubkey, ciphertext): string // takes ciphertext+iv as specified in nip-04 | ||
| 16 | ``` | 19 | ``` |
| 17 | 20 | ||
| 18 | ### Implementation | 21 | ### Implementation |