Skip to content

Instantly share code, notes, and snippets.

@dvdtoth
Created February 3, 2023 11:44
Show Gist options
  • Save dvdtoth/544e0f79b53e336e8e304fcb5011812b to your computer and use it in GitHub Desktop.
Save dvdtoth/544e0f79b53e336e8e304fcb5011812b to your computer and use it in GitHub Desktop.
Nostr Bech32 npub to hex
from nostr.key import PublicKey
print(PublicKey('').from_npub("npub18km328aqzchsrd9lhhfkedyah9qs0umjhletrncfq29w9jkm78gqjkw66k").hex())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment