timechain-nostr-bot/createAccount.py
PascalR c5949f7526
dev2main (#1)
* initial code commit

* fixes

* fix prints not showing in docker

* add github workflow

* fix naming of docker image build workflow
2023-04-12 16:06:00 +02:00

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()}")