This link explains it a bit better: https://lightning.network/ and see the paper at the end for the exact details