Channel top-up



Summary:

The Lightning Network protocol could be expanded with a new operation, according to a proposal by user ZmnSCPxj. The top-up system would allow users to add funds to a micropayment channel to pay for services. The concept already exists outside of the Lightning Network, and many new users might reasonably expect it to be available. The proposed procedure involves Alice generating a preimage, proposing a top-up operation to Bob, who responds with a new public key hash as payment target. Alice then generates a recovery public key hash and creates an HTLC transaction containing the top-up amount from her funds, signs it and broadcasts it to the Bitcoin network. When the transaction confirms on the blockchain, Alice provides the transaction ID to Bob as well as the hash of the random number preimage. Bob sends a (standard) update_add_htlc to Alice, referring to their channel, with a 1-day timeout. After Bob confirms that the preimage hashes to the random number preimage, he fulfils the update_fulfill_htlc, allowing Alice to spend via Lightning for Bob's service.


Updated on: 2023-05-24T01:33:03.429629+00:00