This question already has an answer here:
I'm checking https://lightning.network/ and first paragraph of explanation says:
Bidirectional Payment Channels. Two participants create a ledger entry on the blockchain which requires both participants to sign off on any spending of funds.
What does this step mean. Is this ledger entry a transaction? Is this ledger entry actually one broadcasted multisig transaction signed by both parties that ends on the blockchain? Or two parties broadcast two multisig transactions, or two regular transactions? Can you give a numerical example?
Both parties create transactions which refund the ledger entry to their individual allocation, but do not broadcast them to the blockchain.
After the first step above then each party crate a regular transaction to refund what? (Can you continue on numerical example above)
They can update their individual allocations for the ledger entry by creating many transactions spending from the current ledger entry output. Only the most recent version is valid, which is enforced by blockchain-parsable smart-contract scripting. This entry can be closed out at any time by either party without any trust or custodianship by broadcasting the most recent version to the blockchain.