clean up nip89 with suggested params in the nip, replace nip04 with nip44 for encryption

This commit is contained in:
Believethehype
2024-11-22 19:18:44 +01:00
parent b88f4a54ca
commit e2f720becc
90 changed files with 412 additions and 346 deletions

View File

@@ -5,7 +5,7 @@ from dataclasses import dataclass
from logging import Filter
from sqlite3 import Error
from nostr_sdk import Timestamp, Keys, PublicKey, Filter, Kind, make_private_msg
from nostr_sdk import Timestamp, Keys, PublicKey, Filter, Kind, make_private_msg, NostrSigner
from nostr_dvm.utils.definitions import relay_timeout
from nostr_dvm.utils.nostr_utils import send_nip04_dm
@@ -192,8 +192,7 @@ async def update_user_balance(db, npub, additional_sats, client, config, giftwra
# always send giftwrapped. sorry not sorry.
#if giftwrap:
event = await make_private_msg(keys, PublicKey.parse(npub), message,
None)
event = await make_private_msg(NostrSigner.keys(keys), PublicKey.parse(npub), message)
await client.send_event(event)
#else:
# await send_nip04_dm(client, message, PublicKey.parse(npub), config)