7 lines
131 B
Python
7 lines
131 B
Python
#!/usr/bin/env python3
|
|
from nostr_sdk import PublicKey
|
|
import sys
|
|
npub = sys.argv[1]
|
|
pk = PublicKey.parse(npub)
|
|
print(pk.to_hex())
|