remove the need for nostrclient

This commit is contained in:
callebtc 2023-04-04 12:52:10 +02:00
commit bf6659bbbd
6 changed files with 29 additions and 45 deletions

View file

@ -9,16 +9,13 @@ from lnbits.helpers import template_renderer
from lnbits.tasks import catch_everything_and_restart
from loguru import logger
try:
from ..nostrclient.nostr.event import Event
from ..nostrclient.nostr.key import PrivateKey, PublicKey
nostrclient_present = True
nostr_privatekey = PrivateKey()
nostr_publickey: PublicKey = nostr_privatekey.public_key
logger.debug(f"LNURLP Zaps Nostr pubkey: {nostr_publickey.hex()}")
except ImportError:
nostrclient_present = False
from .nostr.event import Event
from .nostr.key import PrivateKey, PublicKey
nostr_privatekey = PrivateKey()
nostr_publickey: PublicKey = nostr_privatekey.public_key
logger.debug(f"LNURLP Zaps Nostr pubkey: {nostr_publickey.hex()}")
db = Database("ext_lnurlp")