0g-chain/internal/x/paychan
2018-08-27 17:58:58 -04:00
..
client initial refactor sketch 2018-08-24 19:18:41 -04:00
doc.go add pkg doc file 2018-07-09 19:50:59 +01:00
endblocker.go fill out rough implementation 2018-08-27 17:58:58 -04:00
handler.go fill out rough implementation 2018-08-27 17:58:58 -04:00
keeper_test.go complete basic keeper tests 2018-07-15 12:41:55 +01:00
keeper.go fill out rough implementation 2018-08-27 17:58:58 -04:00
README.md fill out rough implementation 2018-08-27 17:58:58 -04:00
types.go fill out rough implementation 2018-08-27 17:58:58 -04:00
wire.go initial refactor sketch 2018-08-24 19:18:41 -04:00

Payment channel implementation sketch

Simplifications:

  • unidirectional paychans
  • no top ups or partial withdrawals (only opening and closing)

TODO

  • error handling (getter setter return values? and what happens in failures)
  • chnge module name to "channel"?
  • Find a better name for Queue - clarify distinction between int slice and abstract queue concept
  • Do all the small functions need to be methods on the keeper or can they just be floating around?