mirror of
https://github.com/mroxso/timechain-nostr-bot.git
synced 2025-03-17 13:22:02 +01:00
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()}")
|