mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 16:55:21 +00:00
.. | ||
client | ||
doc.go | ||
endblocker.go | ||
handler.go | ||
keeper_test.go | ||
keeper.go | ||
README.md | ||
types.go | ||
wire.go |
Payment channel implementation sketch
Simplifications:
- unidirectional paychans
- no top ups or partial withdrawals (only opening and closing)
TODO
- 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?
- Tidy up - standardise var names, comments and method descriptions
- is having all the get functions return a bool if not found reasonable?
- any problem in signing your own address?
- Gas