remove the need for nostrclient
This commit is contained in:
parent
642cad9ed8
commit
bf6659bbbd
6 changed files with 29 additions and 45 deletions
15
__init__.py
15
__init__.py
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue