mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-23 08:55:52 -05:00
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:
parent
bc9d469c20
commit
188a9ea9fb
17
07.md
17
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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user