2018-07-17 14:00:44 +00:00
|
|
|
Payment channel implementation sketch
|
2018-07-08 22:09:07 +00:00
|
|
|
|
|
|
|
Simplifications:
|
|
|
|
|
|
|
|
- unidirectional paychans
|
|
|
|
- no top ups or partial withdrawals (only opening and closing)
|
|
|
|
|
|
|
|
|
|
|
|
TODO
|
2018-08-24 23:18:41 +00:00
|
|
|
- chnge module name to "channel"?
|
2018-08-27 21:58:58 +00:00
|
|
|
- Find a better name for Queue - clarify distinction between int slice and abstract queue concept
|
2018-08-29 03:45:26 +00:00
|
|
|
- refactor queue into one object
|
2018-08-27 21:58:58 +00:00
|
|
|
- Do all the small functions need to be methods on the keeper or can they just be floating around?
|
2018-08-29 03:45:26 +00:00
|
|
|
- Tidy up - standardise var names, method descriptions, heading comments
|
2018-08-28 03:48:48 +00:00
|
|
|
- any problem in signing your own address?
|
|
|
|
- Gas
|
2018-09-01 17:16:56 +00:00
|
|
|
- find nicer name for payout
|
2018-08-30 17:43:15 +00:00
|
|
|
- tags - return channel id
|
2018-09-01 17:16:56 +00:00
|
|
|
- create custom errors instead of using sdk.ErrInternal
|
|
|
|
- maybe split off signatures from update as with txs/msgs - testing easier, code easier to use, doesn't store sigs unecessarily on chain
|
|
|
|
- consider removing pubKey from UpdateSignature - instead let channel module access accountMapper
|
|
|
|
- remove printout from tests when app initialised
|