nervosnetwork / fiber-archive

Channel network built on Nervos CKB.
MIT License
3 stars 4 forks source link

unidirectional channel #2

Open cryptowen opened 3 years ago

cryptowen commented 3 years ago

There are 2 reasons that I think a unidirectional channel may be better than bidirectional channel in real life.

  1. The amount we pay or receive usually quite differ for a specific role.
  2. The online assumption for normal users are too strong. For most users who will run their clients on mobile devices, it's hard to remain online. Though we can involve watchtower, the process will be more complicated.

With a modification from bidirectional channel to unidirectional channel, we'll lose the ability to reuse a channel to do both pay and receive, but what we get are:

Then the use case will be:

modification details: