Deterministic NodeID:
- use_recoverable_channel is a user setting, available
only in standard wallets with a 'segwit' seed_type
- if enabled, 'lightning_xprv' is derived from seed
- otherwise, wallets use the existing 'lightning_privkey2'
Recoverable channels:
- channel recovery data is added funding tx using an OP_RETURN
- recovery data = 4 magic bytes + node id[0:16]
- recovery data is chacha20 encrypted using funding_address as nonce.
(this will allow to fund multiple channels in the same tx)
GUI:
- whether channels are recoverable is shown in wallet info dialog.
- if the wallet can have recoverable channels but has an old node_id,
users are told to close their channels and restore from seed
to have that feature.
This commit is contained in:
14
electrum/gui/messages.py
Normal file
14
electrum/gui/messages.py
Normal file
@@ -0,0 +1,14 @@
|
||||
# note: qt and kivy use different i18n methods
|
||||
|
||||
MSG_RECOVERABLE_CHANNELS = """
|
||||
Add extra data to your channel funding transactions, so that a static backup can be
|
||||
recovered from your seed.
|
||||
|
||||
Note that static backups only allow you to request a force-close with the remote node.
|
||||
This assumes that the remote node is still online, did not lose its data, and accepts
|
||||
to force close the channel.
|
||||
|
||||
If this is enabled, other nodes cannot open a channel to you. Channel recovery data
|
||||
is encrypted, so that only your wallet can decrypt it. However, blockchain analysis
|
||||
will be able to tell that the transaction was probably created by Electrum.
|
||||
"""
|
||||
Reference in New Issue
Block a user