mirror of
https://github.com/aljazceru/python-nostr.git
synced 2025-12-19 15:24:19 +01:00
Changes from https://github.com/callebtc/python-nostr/pull/8
This commit is contained in:
4
main.py
4
main.py
@@ -27,7 +27,7 @@ async def dm():
|
||||
f"\nFrom {event.public_key[:3]}..{event.public_key[-3:]}: {decrypted_content}"
|
||||
)
|
||||
|
||||
client = NostrClient(private_key=pk)
|
||||
client = NostrClient(privatekey_hex=pk)
|
||||
if not pk:
|
||||
print(f"Your private key: {client.private_key.bech32()}")
|
||||
|
||||
@@ -66,7 +66,7 @@ async def post():
|
||||
f"\nFrom {event.public_key[:3]}..{event.public_key[-3:]}: {event.content}"
|
||||
)
|
||||
|
||||
sender_client = NostrClient(private_key=pk)
|
||||
sender_client = NostrClient(privatekey_hex=pk)
|
||||
# await asyncio.sleep(1)
|
||||
|
||||
pubkey_to_str = (
|
||||
|
||||
Reference in New Issue
Block a user