If possible - a wish. It would be better if the public key and the private one could be set in bech32 encoding with prefixes. Firstly, the user will not confuse the private key with the public one by mistake and will not accidentally reveal it. Also, he will not have to look for decoders, since many Nostr clients give the user already encoded bech32 keys. This also reduces the risk of private key leakage through decoders. In addition, you already use the bech32 functions for encoding - there is already the same module for decoding.
Cool. Good idea, I'll just allow for both hex and bech32. Should be easy.
Please Login to reply.
Thank you! I will run your server soon, I hope :)