@brugeman Trying nsec.app I've "signed-up" and I have a new identity on my mobile browser. Questions: 1. how can I import my existing keys there? 2. now if on another browser I do "sign-in" it ask me for public key and.. a password? I am confused. In my mind it should hold keys, so I should be able to scan a QR code and store it and that's it. To be clear I expect it to work kind of like Amber but in a browser. Am I getting it wrong?
To import keys click add account then advanced then import. Do the same on another device. You can setup cloud sync for your key in settings - set a password and your key is encrypted with password and stored on our server, then on another device you can login with that password and your key is fetched from server and decrypted.
Ohhhhh... ok so from https://use.nsec.app it's first GET STARTED, then on the bottom "advanced" that show Import Key. My 2 cents, I would have import key next to signup and login. I'll try the sync, thanks.
Thanks, I guess you're right
Cool, sync worked! Now I can import there my keys. This could easily become my Bitwarden for cryptographic keys... Going to try it on my webapp now.
Amazing!
oh and eventually I can run my own nsbunker daemon and have my devices sync only from that?
Nsec.app doesn't use nsecbunker (server-side nip46 server). It stores your keys in browser and runs nip46 server in a service worker, it's server only wakes the worker up when needed. You could host your own version of nsec.app. But doing that just to sync your keys through your own server isn't worth it - sync is e2e encrypted with your password, you don't gain much from self hosting.
From a webapp I guess I need to trigger an "intent" or some kind of uri scheme protocol so that login button open nsec.app to sign users in... Don't know exactly which one but I'll figure it out.
If your app already works with key storage extensions (nip-07, window.nostr) then you can use nostr-login library - two lines of code and all your calls to window.nostr are proxied to nip46 remote signing, with a pretty UI showing up for users to login/signup.
Yes I do the window.nostr(event) now. this one? https://www.npmjs.com/package/nostr-login there's a github?