nbd-wtf / nostr-tools

Tools for developing Nostr clients.
The Unlicense
685 stars 188 forks source link

nip46.createAccount should accept local keypair #401

Closed nostrband closed 4 months ago

nostrband commented 4 months ago

Currently createAccount generates local keypair internally and sets it into BunkerSigner that is returned. Problem is, local keypair can't be retrieved from the signer, and thus can't be saved to persistent storage to be reused on the next session, and thus user will have to re-connect the app.

fiatjaf commented 4 months ago

Like this? I'm a little confused about the issue this is causing, but hopefully it will work.

nostrband commented 4 months ago

I think that should be enough, now this can be fixed: https://github.com/fiatjaf/window.nostr.js/issues/2