What is Nostr?
nico / Nicolas ₿ ⚡️ 🇦🇷🧉🤙💜
npub1qqq…su7e
2023-03-11 21:12:14

nico on Nostr: Converting from npub to hex is two lines in case you need a script from nostr.key ...

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())
Author Public Key
npub1qqqqqqpn745uwp5ummzhtjsqqkg6xxp3awmgmcswm8ahs03lc2rshlsu7e