From 188a9ea9fb4b1f5c607f4fbdaa9c4d92dc1f2489 Mon Sep 17 00:00:00 2001 From: Alexa Aker <119618812+elidyweaver@users.noreply.github.com> Date: Fri, 5 May 2023 17:57:47 -0600 Subject: [PATCH] NIP-07 friendly description When people use web clients for the first time, many are redirected to this page to learn about signing in with a browser extension. This page keeps a good list of options, but it is technical. Adding a "Nostr How To" here may make it easier for non-devs to understand NIP-07. --- 07.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/07.md b/07.md index 3b7a1d2..a3334e1 100644 --- a/07.md +++ b/07.md @@ -2,7 +2,22 @@ NIP-07 ====== `window.nostr` capability for web browsers + ------------------------------------------ +### Nostr How To: Browser Extensions + +*Browser extensions with nostr NIP-07 are an extra security layer for your private or secret key (nsec)* + +**Best practice:** Do not enter your nostr private key directly in a nostr client website, use a browser extension instead. + +1. Download and setup a browser extension (list below) +2. Generate a nostr key pair*, or if you already have one, save a copy in your browser extension +3. Use your browser extension of choice to sign in and create notes in nostr web clients that support this feature + +*Keep a backup of your public and private keys in a password manager + +------------------------------------------ +### Technical Specifications `draft` `optional` `author:fiatjaf` @@ -21,7 +36,7 @@ async window.nostr.getRelays(): { [url: string]: {read: boolean, write: boolean} async window.nostr.nip04.encrypt(pubkey, plaintext): string // returns ciphertext and iv as specified in nip-04 async window.nostr.nip04.decrypt(pubkey, ciphertext): string // takes ciphertext and iv as specified in nip-04 ``` - +------------------------------------------ ### Implementation - [horse](https://github.com/fiatjaf/horse) (Chrome and derivatives)