We built a Generalised State Channels framework

Machinomy
Machinomy
Mar 12, 2018 · 2 min read
Image for post
Image for post

Out of all the proposals to scale Ethereum network state channels is the most approachable. It makes micropayments, economically feasible blockchain games and token swaps, secure identity exchange and other exciting things real.

NB. awesome-state-channels reading list could help with introduction.

Generalised state channels is a unified framework for the application channels. It is expected to make building such systems easier. Just add a domain logic contract to the framework, and it works. Upgradeability comes for free.

We expected an implementation of Generalised State or something tangible to build upon to be released by February. Early March, no artefacts released still. Now is the time for being on the good side of humanity.

We got our stuff together, built some code, then some docs. We are happy to present here a design that we ended up with. The main contribution is a detailed separation of concerns between the contracts involved. As we carved major details in code, it is not a pure theory. The paper reveals enough details to restore an implementation, if such a need arises.

We expect to release the code a little bit later after a swift round of optimisations suggested in the paper.

Now as we have that, two interesting questions arise. One is specific for payment channels, a subset of state channels concerned with payments. The design provides a nice integration path for hash-time-locked payments a-la Lightning Network. Do we really need that for a coffee payment? Maybe we could stream the money similar to how TCP/UDP/IP stream data today.

Another question is of general matter. We have a state channels system in place, and would like to upgrade a subchannel contract. How could the participants trust a new contract? Currently we believe Token-Curated Registry, or Token Market, idea could provide a solution.

That we ponder.

Machinomy

Micropayments for the Web of Everything

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store