forked from iov-one/weave
/
doc.go
18 lines (14 loc) · 794 Bytes
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
Package paychan implements payment side channel functionality.
Payment channel functionality allows to deposit an amount that can be later
transferred in chunks over that payment channel. Owner of the payment channel
can choose to send full allocated amount or just a part of it over time and
recipient can claim received money. When funds from a payment channel are
claimed, payment channel is closed and any remaining tokens are returned to the
payment channel owner.
Except creation and final closing transaction, all payment channel operations
are made off the chain and therefore are very fast and cheap to execute.
Payment channel can be closed only by the recipient when claiming received
funds or by the payment channel owner after the deadline was reached.
*/
package paychan