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.
This commit is contained in:
Alexa Aker 2023-05-05 17:57:47 -06:00
parent bc9d469c20
commit 188a9ea9fb

17
07.md
View File

@ -2,7 +2,22 @@ NIP-07
====== ======
`window.nostr` capability for web browsers `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` `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.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 async window.nostr.nip04.decrypt(pubkey, ciphertext): string // takes ciphertext and iv as specified in nip-04
``` ```
------------------------------------------
### Implementation ### Implementation
- [horse](https://github.com/fiatjaf/horse) (Chrome and derivatives) - [horse](https://github.com/fiatjaf/horse) (Chrome and derivatives)