0g-chain/internal/x/paychan/README.md

23 lines
922 B
Markdown
Raw Normal View History

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-09-01 18:37:10 +00:00
- in code TODOs
- Tidy up - method descriptions, heading comments, remove uneccessary comments, README/docs
2018-08-27 21:58:58 +00:00
- Find a better name for Queue - clarify distinction between int slice and abstract queue concept
2018-09-01 18:37:10 +00:00
- write some sort of integration test
- find nicer name for payout
2018-09-01 18:37:10 +00:00
- add Gas usage
- add tags (return channel id on creation)
2018-09-01 20:41:40 +00:00
- refactor cmds to be able to test them, then test them
2018-09-01 18:37:10 +00:00
- use custom errors instead of using sdk.ErrInternal
- 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
2018-09-01 18:37:10 +00:00
- refactor queue into one object