Difference between revisions of "Keys"

From lightningwiki.net
Jump to navigation Jump to search
Line 1: Line 1:
{{TODO|Write more about the keys, key types, how/why to back them up}}
Your Lightning node or wallet will have keys. Look at [[Backup]] for instructions.
Your Lightning node or wallet will have keys. Look at [[Backup]] for instructions.


= Bitcoin key (on-chain) =
= Bitcoin key (on-chain) =
A [[Wallet|wallet]] and [[Node|lightning node]] usually hold bitcoins to open channels. If you backup this key you can get your on-chain balance back.
A [[Wallet|wallet]] and [[Node|lightning node]] usually hold bitcoins to open channels. If you backup this key you can get your on-chain balance back.
= Channel information and backup =
== LND ==
Tip for now, just backup the while ~/.lnd directory.
{{TODO|Write how to backup lnd}}


= Commitment revocation private key =
= Commitment revocation private key =
Every commitment transaction has a unique commitment revocation private-key value that allows the other peer to spend all outputs immediately: revealing this key is how old commitment transactions are revoked. To support revocation, each output of the commitment transaction refers to the commitment revocation public key.
Every commitment transaction has a unique commitment revocation private-key value that allows the other peer to spend all outputs immediately: revealing this key is how old commitment transactions are revoked. To support revocation, each output of the commitment transaction refers to the commitment revocation public key.

Revision as of 11:06, 17 January 2019

Your Lightning node or wallet will have keys. Look at Backup for instructions.

Bitcoin key (on-chain)

A wallet and lightning node usually hold bitcoins to open channels. If you backup this key you can get your on-chain balance back.

Channel information and backup

LND

Tip for now, just backup the while ~/.lnd directory. Template:TODO

Commitment revocation private key

Every commitment transaction has a unique commitment revocation private-key value that allows the other peer to spend all outputs immediately: revealing this key is how old commitment transactions are revoked. To support revocation, each output of the commitment transaction refers to the commitment revocation public key.