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

Length of provided private key should be 64 #80

Closed sgon00 closed 1 year ago

sgon00 commented 1 year ago

Hi, I was using https://github.com/KoalaSat/nostros on my android phone. It generates a private key which has length of 63.

But when I use it (try to login) in nostr_console, it will report the error message: Length of provided private key should be 64.

Do I miss anything? I am new to nostr protocol. Thanks a lot.

sgon00 commented 1 year ago

OK, I figured it out:

Note about key formats: Damus, and astral use npub/nsec key format, while other clients use hex. To convert from npub/nsec to hex format, use this tool. Hex keys will be phased out of all user-facing parts of the clients.