fiatjaf / nos2x

nostr signer extension
278 stars 55 forks source link

Adding QR codes for better air-gaped experience #32

Closed ktecho closed 1 year ago

ktecho commented 1 year ago

I've been frustrated this days trying to use Nostr apps on Android, because my identity is in nos2x. Asking at several places which is the best way to send the private key to the apps, the replies range from "send an email to yourself", to "install a QR app, put the private key there, then download an Android QR reader app, scan that QR, paste into the app".

That experience is very frustrating and a very bad UX, because people will end up emailing the private key to themselves... So for a really air-gapped experience, I thought I could implement the QRs in nos2x and talk with at least one app developer to see if they would implement it. This was 2 days ago, and now nos2x can show QRs and Nostros (by @Koalasat) can read them in Nostros v0.3.0.8-alpha. We tried it and it works.

I've implemented this in 2 places, and I would like to know opinions on what would be the best way to put it. The first one is in the popup that appears after clicking the extension icon. Personally I like this option, because it's easy to invoke:

image

You can copy the public or the private key clicking on one or the other icon.

The other place would be in Options:

image

That place is more difficult to reach, but you have the QR at the place where you generate the key the first time, or the time you put it there to be saved.

So what do you think?

ktecho commented 1 year ago

@fiatjaf Do you think there is something more that I can do to improve this?

I say this because I've seen that in the Chrome Store the version is still 1.8.1.