Lightning Network Risk Prevention Measures
FMyGdTk6iXFqfnSbvBtte
The Lightning Payment Layer 1 private key (cold storage) is generated offline, and the second layer private key is generated by using the wallet address as the brain wallet seed, and is cyclically calculated to the 100th layer. Use the last layer 100 public key as the public key for lightning payment. If the lightning private key is stolen, the layer 99 public key is broadcast in time to invalidate the 100th layer public key. It can prevent stolen 100 times.
Lightning channel establishment:
1. Sign the authorized private key with cold storage to authorize the lightning payment of the layer 100 public key, and all lightning payments do not use the original private key. Both the original private key and the lightning layer 1 private key are cold storage (offline) and are very secure.
2, in order to control the risk, you must set the daily payment limit of each party (such as: daily maximum limit: 60 yuan for one party, 70 yuan for B party). If the lightning private key of Party B is stolen, Party B will use cold storage for original private use. The key closes the channel on the chain, and at most, it will only lose the maximum payment of 70 yuan for the day.
In order to save the blockchain space, when the lightning channel is established, the blockchain only stores the hash value of the lightning-paid third-layer public key and the daily payment limit. The party applying to close the channel must provide the original information for the miner to verify the Lightning Payment Level 100 public key for both parties and the maximum daily payment limit.
Welcome to support BTC address: 18cZYPCppT5LbUjwDoqdjVGUP8jFoCPGcE