Converting from npub to hex is two lines in case you need a script

from nostr.key import PrivateKey

print(PrivateKey.from_nsec('npub1......').hex())

Reply to this note

Please Login to reply.

Discussion

What's the use of an npub in hex format?

En Nostr los eventos van en Hex. Luego las aplicaciones de usuario usan npub pero si queres hacer un query a una base de datos etc es en hex. Para el uso cotidiano no tiene mucha utilidad