1
0

after rebase clean-up

This commit is contained in:
SomberNight
2018-10-25 23:30:36 +02:00
committed by ThomasV
parent 7e76e82152
commit c0ae7b5534
7 changed files with 27 additions and 24 deletions

View File

@@ -17,9 +17,10 @@ import dns.exception
from . import constants
from . import keystore
from . import bitcoin
from .keystore import BIP32_KeyStore
from .bitcoin import sha256, COIN
from .bitcoin import COIN
from .crypto import sha256
from .bip32 import bip32_root
from .util import bh2u, bfh, PrintError, InvoiceError, resolve_dns_srv, is_ip_address, log_exceptions
from .lntransport import LNResponderTransport
from .lnbase import Peer
@@ -84,7 +85,7 @@ class LNWorker(PrintError):
# TODO derive this deterministically from wallet.keystore at keystore generation time
# probably along a hardened path ( lnd-equivalent would be m/1017'/coinType'/ )
seed = os.urandom(32)
xprv, xpub = bitcoin.bip32_root(seed, xtype='standard')
xprv, xpub = bip32_root(seed, xtype='standard')
self.wallet.storage.put('lightning_privkey2', xprv)
self.wallet.storage.write()
return keystore.from_xprv(xprv)