Skip to content

Instantly share code, notes, and snippets.

@vicariousdrama
vicariousdrama / bulknpub2hex.py
Created April 8, 2024 05:26
Quick python script to convert a file with a list of npubs into hexadecimal pubkeys
#!/usr/bin/env python3
from nostr.key import PublicKey
import os
import shutil
import sys
filename = "listofnpubs.txt"
if not os.path.exists(filename):
sys.exit("File does not exist")
with open(filename) as f: