Nostr bech32 dm (#109)

* nostr: bech32 keys and remember last DM check

* cump to 0.9.2

* make format
This commit is contained in:
calle
2023-02-13 23:19:19 +01:00
committed by GitHub
parent 53aa73b7c7
commit 5ec2c3604e
10 changed files with 84 additions and 19 deletions

View File

@@ -41,8 +41,10 @@ from cashu.wallet import migrations
from cashu.wallet.crud import (
get_keyset,
get_lightning_invoices,
get_nostr_last_check_timestamp,
get_reserved_proofs,
get_unused_locks,
set_nostr_last_check_timestamp,
)
from cashu.wallet.wallet import Wallet as Wallet
@@ -609,8 +611,8 @@ async def info(ctx: Context):
if TOR:
print(f"Tor enabled: {TOR}")
if NOSTR_PRIVATE_KEY:
client = NostrClient(privatekey_hex=NOSTR_PRIVATE_KEY, connect=False)
print(f"Nostr public key: {client.public_key.hex()}")
client = NostrClient(private_key=NOSTR_PRIVATE_KEY, connect=False)
print(f"Nostr public key: {client.public_key.bech32()}")
print(f"Nostr relays: {NOSTR_RELAYS}")
if SOCKS_HOST:
print(f"Socks proxy: {SOCKS_HOST}:{SOCKS_PORT}")