Loomio
Fri 7 Nov 2014 4:06AM

OpenAppJS Technical Update

ST Simon Tegg Public Seen by 174

The biggest news in technical land is that Paul Frazee and others have hacked up phoenix a distributed social network built on top of Dominic Tarr’s secure scuttlebutt. A usable version is now ready! This is important for OpenApp because:

  • This is the same system we planned to use for federating instances of openApp groups. We will likely just use phoenix/secure scuttlebutt as a ‘base layer’ for supplying federation functionality to OpenApp.
  • These developers will continue to work on some of the harder technical problems (like local cacheing with distributed databases) that were raised in earlier technical discussions here.
  • They’re also using mercury for the frontend UI like the OpenAppJS team which raises the possibility of closer collaboration between these teams.
  • This is dovetailing nicely with a strategy of ‘open source at scale’ - part of this is to just build on top of the best of the ‘emerging web’, rather than try and reinvent all the things.

To recap, secure scuttlebutt implements a ‘secure gossip protocol’ - peers (in OpenApp a large group like Enspiral) share secure data, i.e. ‘gossip’ with other instances they trust, who in turn ‘gossip’ with others. Data propagates through system without a centralised server. The idea is that OpenApp groups would have access to the public data of other groups without all of the security problems and economics of being centrally hosted.

I’ll be setting up my own local instance this weekend to try it out.

For OpenAppJS team specifically:
Mikey has been working cobudget which is now being tested internally in Enspiral for this month’s budget round!
I’ve been hacking on Person-UI the main component behind craftodex. Initially, I found this a bit frustrating as I spent a lot of time getting used to mercury. Perhaps it was because I would hack on this in the evenings when I have low brain function, or because mercury restricts you a bit to make it easier and more performant in the long run. I only started to ‘get’ mercury a month ago and now I’ve come round to it.

The API is starting to stabilise and I’m looking forward to doing more radical things like adding other entities, and viewing groups ‘as a network’ or ‘as holons’. I’ll comment on some of the more interesting technical details that are going on, in the comments here or in the forthcoming design update.

BH

Bob Haugen Fri 7 Nov 2014 12:05PM

This is exciting progress! I will be grateful for your suffering when it's my turn to learn mercury. Loved the routing#8 conversation!

I can see gossip as a great protocol for value streams.

  • Published by a value network.
  • Like Activity Streams, but about value network activities.
  • Needs, ideas, offers, requests, plans, new recipes, creations, work to do, stuff we need, notices about income and income distribution, etc.

I can't see it much for contract-formation between agents, which is a back-and-forth protocol that needs stronger consistency, and is nobody else's business until the principals agree on something. But maybe I am missing something?

JD

Josef Davies-Coates Fri 7 Nov 2014 3:04PM

Many thanks for another great update @simontegg - keep 'em coming :)

I do wish @tav and @tomsalfield would take the time to engage here too because I know they've done useful relevant thinking and work related to all this stuff.

One thing @tomsalfield mentioned to me the other day when I mentioned the plans for 'people' and 'groups' apps was that 'groups' possibly isn't the way forward and that perhaps 'people' and 'spaces' would be more useful. We didn't actually chat any more about it though so I'm not really sure what he meant/ what the difference is. Hopefully he'll chime in. If not I'll try to remember to ask him and then feed back :)

BH

Bob Haugen Fri 7 Nov 2014 4:10PM

@josefdaviescoates - @tav said something about Ethereum in another Loomio discussion that I can't find now that is what got me thinking about the minuses of blockchains...always hoped for a re-appearance to learn more.

And yeah, would like to understand what @tomsalfield meant by spaces.

JD

Josef Davies-Coates Fri 7 Nov 2014 4:20PM

Hey @bobhaugen it was actually me relaying something @tav had written to me in an e-mail.

Here it is:
https://www.loomio.org/d/ELxZy1TJ/what-do-you-all-think-about-eris#comment-130428

M

Mikey Fri 7 Nov 2014 10:33PM

i'm currently 88c9aa687a076aa530cc18d7921cec1f90f7779ad25915204d272a695072f58a on phoenix, we hang out in #stackvm (node.js mad science), #scuttlebutt (phoenix and secure-scuttlebutt), and #virtualdom (mercury) on freenode irc.

M

Mikey Fri 7 Nov 2014 10:41PM

another good description of the "secure gossip protocol" is in the secure-scuttlebutt README:

SecureScuttlebutt uses a signed block-chain per identity. Each block points to the previous block, the signing key, and contains a short message and a signature. Every identity has their own block-chain.

Each block-chain is an append-only data structure that can be written to exclusively by the keys' owner. Since the chains are append only, replication is simple, request the chain for that id, since the latest item you know about.

Now, each node is the master of their own feed, so scuttlebutt replication is just like doing many simultaneous master-slave replications.

Since messages are signed, and replication is eventually consistent, it does not matter if A receives B's messages via C, they can verify B's messages offline (i.e, when A is out of contact with B)

@bobhaugen: you could send encrypted messages back and forth through the network until you reach an agreement, then publish the agreement to a wider audience. gossip is how the network distributes messages, it doesn't mean everyone needs to see your messages.

BH

Bob Haugen Sat 8 Nov 2014 12:21AM

@ahdinosaur - I understand that gossip messages can be private. I was thinking more about an elaborate protocol with eventual consistency for a simpler situation that would like consistency right now: binary agreement. So I am ready to believe that I am missing something, since lots of people seem to think that blockchains are the way to go.

This is the human-level protocol I want: http://conversationsforaction.com/cfa-playground

And I think I would like all of the messages in that conversation to be added to the same append-only document, signed every time. Unbroken record of the whole economic interaction.

If that can fit within gossip and not confuse the participants, it's all ok with me.

M

Mikey Sat 8 Nov 2014 1:04AM

@bobhaugen cool, yeah as far as i know, the Conversations for Action protocol would work great within the per-agent message feeds being described. i'm quite excited to make this happen, it will probably involve various message types relating to the various stages of the conversation. would it be possible for you to document the CfA protocol through descriptions of message-passing (e.g. "at this stage of the conversation, here are the possible messages to send and the respective next stages")?

BH

Bob Haugen Sat 8 Nov 2014 1:16AM

@ahdinosaur I'll give it a shot next week some time.

BH

Bob Haugen Sun 9 Nov 2014 1:45PM

I started a CfA discussion here. More to come after breakfast.

Load More