How do Bitcoin payment channels work?
I would like to know how payment channel mechanic works in practice. What do the involved parties need to do, which information they exchange and how is the security ensured.
Bonus question: What different types of payment channels exist?
Only answers that actually explain channels will qualify for the bounty. While linking to 3rd party sources is encouraged and desired, answers that solely do that won’t count.