mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-20 18:44:20 +01:00
Nostr bech32 dm (#109)
* nostr: bech32 keys and remember last DM check * cump to 0.9.2 * make format
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user