mirror of
https://github.com/mroxso/timechain-nostr-bot.git
synced 2025-03-17 05:11:51 +01:00
* initial code commit * fixes * fix prints not showing in docker * add github workflow * fix naming of docker image build workflow
9 lines
300 B
Python
9 lines
300 B
Python
from nostr.key import PrivateKey
|
|
|
|
private_key = PrivateKey()
|
|
public_key = private_key.public_key
|
|
print(f"Private key: {private_key.bech32()}")
|
|
print(f"Public key: {public_key.bech32()}")
|
|
print("--------------------")
|
|
print(f"Private key: {private_key.hex()}")
|
|
print(f"Public key: {public_key.hex()}") |