vishalxl / nostr_console

Nostr console is an open-source twitter-like social network, direct chat app and group chat all bundled into one program. Built on the decentralized Nostr protocol.
GNU Affero General Public License v3.0
439 stars 33 forks source link

--genkey option creation #35

Open Lvceo opened 1 year ago

Lvceo commented 1 year ago

A --genkey option should be a plus to avoid asking user to create their Private Key manually with

$ openssl rand -hex 32

At start a dotfile must be searched if not existing, then a Warning must be written (if not Error instead). When private key is created and stored in dotfile, then dotfile should be verified to be owned by the user and file mode must be 600.

vishalxl commented 1 year ago

Since a user of command line tool may be expected to generate their own keys using openssl, I am inclined to keep this option out of nostr console. This will simplify the tool and keep key generation separate from console - the user will know its their job to create and save their keys.

Lvceo commented 1 year ago

I understand your position, but for the sake of simplicity, having to just use one tool instead of several is a plus in terms of user experience, IMHO (think of new comers). Theses keys could be stored in a ad-hoc .dotdir for nostr_console. Providing a single point of entry.