Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Channel database for State and Payment Channels #252

Open
haadcode opened this issue Nov 24, 2017 · 2 comments
Open

Channel database for State and Payment Channels #252

haadcode opened this issue Nov 24, 2017 · 2 comments

Comments

@haadcode
Copy link
Member

The other week I was thinking that the log database in OrbitDB would be perfect for creating another database on top of it to have Payment Channels and it can be extended to a generalized State Channel.

Having read this nice blog post today, I went ahead and did a really quick and dirty prototype here. The idea is that the Channel is like a database, such as KeyValue is, and internally the ChannelIndex processes and verifies the operations in the channel (open/create, update/send, close/settle). This is still highly experimental, but I think this could be a cool primitive to have in OrbitDB.

If anyone wants to continue this, feel free to run with. I'd be happy to brainstorm more and help!

@7flash
Copy link

7flash commented Feb 9, 2018

Looks like suitable solution for voting app or even DAO's. Is it?

@haydenyoung
Copy link
Member

Looks like suitable solution for voting app or even DAO's. Is it?

I've been working on a PoC that looks into off-chain voting using OrbitDB peers as validators and then using smart contracts to 1) validate votes and 2) solidify voting results on the blockchain.

I've put up some code here https://github.com/haydenyoung/orbitdb-governance.

It is pretty hacky and is missing some key features (although I'm adding all the time) but it does highlight some nice features, epecially using smart contracts for ACs and using the p2p nature of OrbitDB to audit voting results. I think it also shows a nice use case for OrbitDB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants